wallet: revert blockhash properly during reorg

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

View file

@ -245,7 +245,7 @@ func (w *Wallet) disconnectBlock(dbtx walletdb.ReadWriteTx, b wtxmgr.BlockMeta)
if err != nil { if err != nil {
return err return err
} }
b.Hash = *hash bs.Hash = *hash
client := w.ChainClient() client := w.ChainClient()
header, err := client.GetBlockHeader(hash) header, err := client.GetBlockHeader(hash)