Skip to content

Commit

Permalink
wallet: revert blockhash properly during reorg
Browse files Browse the repository at this point in the history
  • Loading branch information
roylee17 committed Sep 13, 2022
1 parent aecb972 commit b7013bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wallet/chainntfns.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ func (w *Wallet) disconnectBlock(dbtx walletdb.ReadWriteTx, b wtxmgr.BlockMeta)
if err != nil {
return err
}
b.Hash = *hash
bs.Hash = *hash

client := w.ChainClient()
header, err := client.GetBlockHeader(hash)
Expand Down

0 comments on commit b7013bf

Please sign in to comment.