From 717f8a4e8f768e2c3a34067f4a55f9c8e3267f3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Wed, 27 Nov 2019 14:41:47 +0200 Subject: [PATCH] core/rawdb: fix reinit regression caused by the hash check PR --- core/rawdb/freezer_reinit.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/rawdb/freezer_reinit.go b/core/rawdb/freezer_reinit.go index ea4dd33d1..d6bf9ab1d 100644 --- a/core/rawdb/freezer_reinit.go +++ b/core/rawdb/freezer_reinit.go @@ -55,10 +55,10 @@ func InitDatabaseFromFreezer(db ethdb.Database) error { if n >= frozen { return } - // Retrieve the block from the freezer (no need for the hash, we pull by - // number from the freezer). If successful, pre-cache the block hash and - // the individual transaction hashes for storing into the database. - block := ReadBlock(db, common.Hash{}, n) + // Retrieve the block from the freezer. If successful, pre-cache + // the block hash and the individual transaction hashes for storing + // into the database. + block := ReadBlock(db, ReadCanonicalHash(db, n), n) if block != nil { block.Hash() for _, tx := range block.Transactions() {