From 0547e5a313b59209f0af12b93df8d166c6feadd8 Mon Sep 17 00:00:00 2001 From: "Kenneth Perry (thothonegan)" Date: Thu, 5 Apr 2018 17:58:14 -0500 Subject: [PATCH] When determining whether to rollback, ask the chain using the chainhash instead of the possibly invalid local hash --- wallet/wallet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wallet/wallet.go b/wallet/wallet.go index 72242e6..c64f45e 100644 --- a/wallet/wallet.go +++ b/wallet/wallet.go @@ -489,7 +489,7 @@ func (w *Wallet) syncWithChain() error { if err != nil { return err } - header, err := chainClient.GetBlockHeader(hash) + header, err := chainClient.GetBlockHeader(chainHash) if err != nil { return err }