Skip to content

Commit

Permalink
core/rawdb: remove empty line that looks out of place
Browse files Browse the repository at this point in the history
Signed-off-by: meows <[email protected]>
  • Loading branch information
meowsbits committed Mar 4, 2020
1 parent d436ea8 commit 63eea3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/rawdb/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,9 @@ func validateFreezerVsKV(freezerdb *freezer, db ethdb.KeyValueStore) error {
// Key-value store and freezer belong to the same network. Ensure that they
// 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.

if headHeaderN := *ReadHeaderNumber(db, ReadHeadHeaderHash(db)); headHeaderN > frozen-1 {
return fmt.Errorf("gap (chaindb=#%d frozen=#%d) in the chain between ancients and leveldb", headHeaderN, frozen)
}
Expand Down

0 comments on commit 63eea3d

Please sign in to comment.