When determining whether to rollback, ask the chain using the chainhash instead of the possibly invalid local hash

This commit is contained in:
Kenneth Perry (thothonegan) 2018-04-05 17:58:14 -05:00 committed by Olaoluwa Osuntokun
parent 3f15a85da7
commit 0547e5a313

View file

@ -489,7 +489,7 @@ func (w *Wallet) syncWithChain() error {
if err != nil { if err != nil {
return err return err
} }
header, err := chainClient.GetBlockHeader(hash) header, err := chainClient.GetBlockHeader(chainHash)
if err != nil { if err != nil {
return err return err
} }