Skip to content

Commit 58e33d9

Browse files
authored
Merge pull request #20403 from karalabe/fix-freezer-reinit
core/rawdb: fix reinit regression caused by the hash check PR
2 parents 7b189d6 + 717f8a4 commit 58e33d9

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎core/rawdb/freezer_reinit.go‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ func InitDatabaseFromFreezer(db ethdb.Database) error {
5555
if n >= frozen {
5656
return
5757
}
58-
// Retrieve the block from the freezer (no need for the hash, we pull by
59-
// number from the freezer). If successful, pre-cache the block hash and
60-
// the individual transaction hashes for storing into the database.
61-
block := ReadBlock(db, common.Hash{}, n)
58+
// Retrieve the block from the freezer. If successful, pre-cache
59+
// the block hash and the individual transaction hashes for storing
60+
// into the database.
61+
block := ReadBlock(db, ReadCanonicalHash(db, n), n)
6262
if block != nil {
6363
block.Hash()
6464
for _, tx := range block.Transactions() {

0 commit comments

Comments
 (0)