When determining whether to rollback, ask the chain using the chainhash instead of the possibly invalid local hash
This commit is contained in:
parent
3f15a85da7
commit
0547e5a313
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue