Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
exchain
nebula
Commits
ec2b8a39
Unverified
Commit
ec2b8a39
authored
Jun 29, 2022
by
protolambda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
relax p2p propagation time, it was too close to L1 block time
parent
cc4af3b8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
gossip.go
op-node/p2p/gossip.go
+2
-2
rollup-node-p2p.md
specs/rollup-node-p2p.md
+1
-1
No files found.
op-node/p2p/gossip.go
View file @
ec2b8a39
...
...
@@ -226,8 +226,8 @@ func BuildBlocksValidator(log log.Logger, cfg *rollup.Config) pubsub.ValidatorEx
// rounding down to seconds is fine here.
now
:=
uint64
(
time
.
Now
()
.
Unix
())
// [REJECT] if the `payload.timestamp` is older than
2
0 seconds in the past
if
uint64
(
payload
.
Timestamp
)
<
now
-
2
0
{
// [REJECT] if the `payload.timestamp` is older than
6
0 seconds in the past
if
uint64
(
payload
.
Timestamp
)
<
now
-
6
0
{
log
.
Warn
(
"payload is too old"
,
"timestamp"
,
uint64
(
payload
.
Timestamp
))
return
pubsub
.
ValidationReject
}
...
...
specs/rollup-node-p2p.md
View file @
ec2b8a39
...
...
@@ -276,7 +276,7 @@ An [extended-validator] checks the incoming messages as follows, in order of ope
-
`[REJECT]`
if the compression is not valid
-
`[REJECT]`
if the block encoding is not valid
-
`[REJECT]`
if the
`payload.timestamp`
is older than
2
0 seconds in the past
-
`[REJECT]`
if the
`payload.timestamp`
is older than
6
0 seconds in the past
(graceful boundary for worst-case propagation and clock skew)
-
`[REJECT]`
if the
`payload.timestamp`
is more than 5 seconds into the future
-
`[REJECT]`
if the
`block_hash`
in the
`payload`
is not valid
...
...
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