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
e468b66e
Unverified
Commit
e468b66e
authored
Feb 14, 2023
by
mergify[bot]
Committed by
GitHub
Feb 14, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4873 from ethereum-optimism/ajsutton/increase-seen-gossip
fix(op-node): Increase gossip seenMessagesTTL
parents
a858ae1d
6c44145e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
gossip.go
op-node/p2p/gossip.go
+3
-2
rollup-node-p2p.md
specs/rollup-node-p2p.md
+1
-1
No files found.
op-node/p2p/gossip.go
View file @
e468b66e
...
@@ -34,7 +34,8 @@ const (
...
@@ -34,7 +34,8 @@ const (
globalValidateThrottle
=
512
globalValidateThrottle
=
512
gossipHeartbeat
=
500
*
time
.
Millisecond
gossipHeartbeat
=
500
*
time
.
Millisecond
// seenMessagesTTL limits the duration that message IDs are remembered for gossip deduplication purposes
// seenMessagesTTL limits the duration that message IDs are remembered for gossip deduplication purposes
seenMessagesTTL
=
80
*
gossipHeartbeat
// 130 * gossipHeartbeat
seenMessagesTTL
=
130
*
gossipHeartbeat
DefaultMeshD
=
8
// topic stable mesh target count
DefaultMeshD
=
8
// topic stable mesh target count
DefaultMeshDlo
=
6
// topic stable mesh low watermark
DefaultMeshDlo
=
6
// topic stable mesh low watermark
DefaultMeshDhi
=
12
// topic stable mesh high watermark
DefaultMeshDhi
=
12
// topic stable mesh high watermark
...
@@ -234,7 +235,7 @@ func BuildBlocksValidator(log log.Logger, cfg *rollup.Config, runCfg GossipRunti
...
@@ -234,7 +235,7 @@ func BuildBlocksValidator(log log.Logger, cfg *rollup.Config, runCfg GossipRunti
// Seen block hashes per block height
// Seen block hashes per block height
// uint64 -> *seenBlocks
// uint64 -> *seenBlocks
blockHeightLRU
,
err
:=
lru
.
New
(
100
)
blockHeightLRU
,
err
:=
lru
.
New
(
100
0
)
if
err
!=
nil
{
if
err
!=
nil
{
panic
(
fmt
.
Errorf
(
"failed to set up block height LRU cache: %w"
,
err
))
panic
(
fmt
.
Errorf
(
"failed to set up block height LRU cache: %w"
,
err
))
}
}
...
...
specs/rollup-node-p2p.md
View file @
e468b66e
...
@@ -211,7 +211,7 @@ GossipSub [parameters][gossip-parameters]:
...
@@ -211,7 +211,7 @@ GossipSub [parameters][gossip-parameters]:
-
`fanout_ttl`
(ttl for fanout maps for topics we are not subscribed to but have published to, in seconds): 24
-
`fanout_ttl`
(ttl for fanout maps for topics we are not subscribed to but have published to, in seconds): 24
-
`mcache_len`
(number of windows to retain full messages in cache for
`IWANT`
responses): 12
-
`mcache_len`
(number of windows to retain full messages in cache for
`IWANT`
responses): 12
-
`mcache_gossip`
(number of windows to gossip about): 3
-
`mcache_gossip`
(number of windows to gossip about): 3
-
`seen_ttl`
(number of heartbeat intervals to retain message IDs):
80 (= 40
seconds)
-
`seen_ttl`
(number of heartbeat intervals to retain message IDs):
130 (= 65
seconds)
Notable differences from L1 consensus (Eth2):
Notable differences from L1 consensus (Eth2):
...
...
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