Skip to content

Commit

Permalink
fix: gossipsub seen_ttl should be in ms (#6607)
Browse files Browse the repository at this point in the history
  • Loading branch information
twoeths committed Mar 28, 2024
1 parent e10a54d commit ae9a32e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/beacon-node/src/network/gossip/gossipsub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ export class Eth2Gossipsub extends GossipSub {
fanoutTTL: 60 * 1000,
mcacheLength: 6,
mcacheGossip: 3,
seenTTL: config.SECONDS_PER_SLOT * SLOTS_PER_EPOCH * 2,
// this should be in ms
seenTTL: config.SECONDS_PER_SLOT * SLOTS_PER_EPOCH * 2 * 1000,
scoreParams,
scoreThresholds: gossipScoreThresholds,
// For a single stream, await processing each RPC before processing the next
Expand Down

0 comments on commit ae9a32e

Please sign in to comment.