Skip to content

Commit

Permalink
core/rawdb: fix typo in comment (ethereum#25191)
Browse files Browse the repository at this point in the history
  • Loading branch information
noirgif authored and cp-wjhan committed Jun 30, 2023
1 parent 8f10c70 commit c698df7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/rawdb/database.go
Expand Up @@ -213,7 +213,7 @@ func NewDatabaseWithFreezer(db ethdb.KeyValueStore, freezer string, namespace st
// are contiguous, otherwise we might end up with a non-functional freezer.
if kvhash, _ := db.Get(headerHashKey(frozen)); len(kvhash) == 0 {
// Subsequent header after the freezer limit is missing from the database.
// Reject startup is the database has a more recent head.
// Reject startup if the database has a more recent head.
if *ReadHeaderNumber(db, ReadHeadHeaderHash(db)) > frozen-1 {
return nil, fmt.Errorf("gap (#%d) in the chain between ancients and leveldb", frozen)
}
Expand Down

0 comments on commit c698df7

Please sign in to comment.