mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-28 00:27:26 +00:00
core/rawdb: fix reinit regression caused by the hash check PR
This commit is contained in:
parent
23c8c74131
commit
717f8a4e8f
1 changed files with 4 additions and 4 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue