Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
3f712e74
Unverified
Commit
3f712e74
authored
Jun 29, 2022
by
Ruohui Wang
Committed by
GitHub
Jun 29, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core/rawdb: fix typo in comment (#25191)
parent
d1890aa4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
database.go
core/rawdb/database.go
+1
-1
No files found.
core/rawdb/database.go
View file @
3f712e74
...
...
@@ -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 i
s
the database has a more recent head.
// Reject startup i
f
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
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment