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
ad7106df
Unverified
Commit
ad7106df
authored
Jul 28, 2022
by
Péter Szilágyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eth/catalyst: fix NewPayload warn log when dropping due to snap sync
parent
9d76a9b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
api.go
eth/catalyst/api.go
+11
-1
No files found.
eth/catalyst/api.go
View file @
ad7106df
...
...
@@ -417,7 +417,17 @@ func (api *ConsensusAPI) delayPayloadImport(block *types.Block) (beacon.PayloadS
// payload as non-integratable on top of the existing sync. We'll just
// have to rely on the beacon client to forcefully update the head with
// a forkchoice update request.
log
.
Warn
(
"Ignoring payload with missing parent"
,
"number"
,
block
.
NumberU64
(),
"hash"
,
block
.
Hash
(),
"parent"
,
block
.
ParentHash
())
if
api
.
eth
.
SyncMode
()
==
downloader
.
FullSync
{
// In full sync mode, failure to import a well-formed block can only mean
// that the parent state is missing and the syncer rejected extending the
// current cycle with the new payload.
log
.
Warn
(
"Ignoring payload with missing parent"
,
"number"
,
block
.
NumberU64
(),
"hash"
,
block
.
Hash
(),
"parent"
,
block
.
ParentHash
())
}
else
{
// In non-full sync mode (i.e. snap sync) all payloads are rejected until
// snap sync terminates as snap sync relies on direct database injections
// and cannot afford concurrent out-if-band modifications via imports.
log
.
Warn
(
"Ignoring payload while snap syncing"
,
"number"
,
block
.
NumberU64
(),
"hash"
,
block
.
Hash
())
}
return
beacon
.
PayloadStatusV1
{
Status
:
beacon
.
ACCEPTED
},
nil
}
...
...
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