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
640d2c5e
Unverified
Commit
640d2c5e
authored
May 04, 2021
by
Péter Szilágyi
Committed by
GitHub
May 04, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #22803 from karalabe/silence-scary-warning
eth: don't print db upgrade warning on db init
parents
fc1c1cbe
856c3796
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
backend.go
eth/backend.go
+3
-1
No files found.
eth/backend.go
View file @
640d2c5e
...
...
@@ -165,7 +165,9 @@ func New(stack *node.Node, config *ethconfig.Config) (*Ethereum, error) {
if
bcVersion
!=
nil
&&
*
bcVersion
>
core
.
BlockChainVersion
{
return
nil
,
fmt
.
Errorf
(
"database version is v%d, Geth %s only supports v%d"
,
*
bcVersion
,
params
.
VersionWithMeta
,
core
.
BlockChainVersion
)
}
else
if
bcVersion
==
nil
||
*
bcVersion
<
core
.
BlockChainVersion
{
log
.
Warn
(
"Upgrade blockchain database version"
,
"from"
,
dbVer
,
"to"
,
core
.
BlockChainVersion
)
if
bcVersion
!=
nil
{
// only print warning on upgrade, not on init
log
.
Warn
(
"Upgrade blockchain database version"
,
"from"
,
dbVer
,
"to"
,
core
.
BlockChainVersion
)
}
rawdb
.
WriteDatabaseVersion
(
chainDb
,
core
.
BlockChainVersion
)
}
}
...
...
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