-
-
Notifications
You must be signed in to change notification settings - Fork 311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: gossipsub seen_ttl for EIP-7045 #6569
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## unstable #6569 +/- ##
=========================================
Coverage 61.46% 61.46%
=========================================
Files 556 556
Lines 58850 58850
Branches 1850 1850
=========================================
Hits 36171 36171
Misses 22638 22638
Partials 41 41 |
Performance Report✔️ no performance regression detected 🚀🚀 Significant benchmark improvement detected
Full benchmark results
|
@@ -99,7 +99,7 @@ export class Eth2Gossipsub extends GossipSub { | |||
fanoutTTL: 60 * 1000, | |||
mcacheLength: 6, | |||
mcacheGossip: 3, | |||
seenTTL: 550 * GOSSIPSUB_HEARTBEAT_INTERVAL, | |||
seenTTL: config.SECONDS_PER_SLOT * SLOTS_PER_EPOCH * 2, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would adding a comment pointing to the specs make sense here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a pretty straightforward value which can be easily found in the spec
also EIP-7045 happens in a couple of places not just this one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be in ms
not second
, fixed in #6607
Some other clients already merged this updated |
🎉 This PR is included in v1.18.0 🎉 |
Motivation
See 6567
Description
Closes #6567