Fix race condition after reorg #29

Merged
roylee17 merged 2 commits from roylee/fix-race-condition-after-reorg into master 2022-09-13 20:40:06 +02:00
Showing only changes of commit 88736cf7b3 - Show all commits

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)