wallet: revert blockhash properly during reorg

This commit is contained in:
Roy Lee 2022-09-12 17:28:07 -07:00
parent aecb972d75
commit 88736cf7b3

View file

@ -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)