mirror of
https://github.com/btcsuite/btcd.git
synced 2025-02-21 22:11:56 +01:00
Put best state with parent's workSum
This commit is contained in:
parent
306aecffea
commit
9e6e1de24e
1 changed files with 1 additions and 1 deletions
|
@ -722,7 +722,7 @@ func (b *BlockChain) disconnectBlock(node *blockNode, block *btcutil.Block, view
|
|||
|
||||
err = b.db.Update(func(dbTx database.Tx) error {
|
||||
// Update best block state.
|
||||
err := dbPutBestState(dbTx, state, node.workSum)
|
||||
err := dbPutBestState(dbTx, state, node.parent.workSum)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue