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 blakehhuynh committed Oct 7, 2022
1 parent e5e3b03 commit 22c8e3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/rawdb/database.go
Expand Up @@ -208,7 +208,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 22c8e3a

Please sign in to comment.