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
28d076d3
Unverified
Commit
28d076d3
authored
Oct 12, 2022
by
Martin Holst Swende
Committed by
GitHub
Oct 12, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core/rawdb: provide more info on 'gap in the chain' error (#25938)
parent
1c737e8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
database.go
core/rawdb/database.go
+2
-2
No files found.
core/rawdb/database.go
View file @
28d076d3
...
...
@@ -240,8 +240,8 @@ func NewDatabaseWithFreezer(db ethdb.KeyValueStore, ancient string, namespace st
if
kvhash
,
_
:=
db
.
Get
(
headerHashKey
(
frozen
));
len
(
kvhash
)
==
0
{
// Subsequent header after the freezer limit is missing from the database.
// 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
)
if
ldbNum
:=
*
ReadHeaderNumber
(
db
,
ReadHeadHeaderHash
(
db
));
ldbNum
>
frozen
-
1
{
return
nil
,
fmt
.
Errorf
(
"gap
in the chain between ancients (#%d) and leveldb (#%d) "
,
frozen
,
ldbNum
)
}
// Database contains only older data than the freezer, this happens if the
// state was wiped and reinited from an existing freezer.
...
...
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