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
79addac6
Unverified
Commit
79addac6
authored
Jul 13, 2020
by
gary rong
Committed by
GitHub
Jul 13, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core/rawdb: better log messages for ancient failure (#21327)
parent
7d5267e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
database.go
core/rawdb/database.go
+4
-1
No files found.
core/rawdb/database.go
View file @
79addac6
...
...
@@ -137,7 +137,10 @@ func NewDatabaseWithFreezer(db ethdb.KeyValueStore, freezer string, namespace st
// If the freezer already contains something, ensure that the genesis blocks
// match, otherwise we might mix up freezers across chains and destroy both
// the freezer and the key-value store.
if
frgenesis
,
_
:=
frdb
.
Ancient
(
freezerHashTable
,
0
);
!
bytes
.
Equal
(
kvgenesis
,
frgenesis
)
{
frgenesis
,
err
:=
frdb
.
Ancient
(
freezerHashTable
,
0
)
if
err
!=
nil
{
return
nil
,
fmt
.
Errorf
(
"failed to retrieve genesis from ancient %v"
,
err
)
}
else
if
!
bytes
.
Equal
(
kvgenesis
,
frgenesis
)
{
return
nil
,
fmt
.
Errorf
(
"genesis mismatch: %#x (leveldb) != %#x (ancients)"
,
kvgenesis
,
frgenesis
)
}
// Key-value store and freezer belong to the same network. Ensure that they
...
...
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