Skip to content

Commit c4d8abf

Browse files
committed
minor fix
1 parent fc0b413 commit c4d8abf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/blockchain.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -857,8 +857,8 @@ func (bc *BlockChain) rewindPathHead(head *types.Header, root common.Hash) (*typ
857857
// and the whole snapshot should be auto-generated in case of head mismatch.
858858
func (bc *BlockChain) rewindHead(head *types.Header, root common.Hash, rewindLimit uint64) (*types.Header, uint64, bool) {
859859
if bc.triedb.Scheme() == rawdb.PathScheme {
860-
head, rootNumber := bc.rewindPathHead(head, root)
861-
return head, rootNumber, head.Number.Uint64() != 0
860+
newHead, rootNumber := bc.rewindPathHead(head, root)
861+
return newHead, rootNumber, head.Number.Uint64() != 0
862862
}
863863
return bc.rewindHashHead(head, root, rewindLimit)
864864
}

0 commit comments

Comments
 (0)