Skip to content

Commit

Permalink
extend seen ttl to cover 2 epochs (#6098)
Browse files Browse the repository at this point in the history
this allows us to drop these useless messages earlier in the pipeline

ethereum/consensus-specs#3627
  • Loading branch information
arnetheduck authored Mar 20, 2024
1 parent 4c0b9ef commit 032b91c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion beacon_chain/networking/eth2_network.nim
Original file line number Diff line number Diff line change
Expand Up @@ -2315,7 +2315,8 @@ proc createEth2Node*(rng: ref HmacDrbgContext,
historyLength: 6,
historyGossip: 3,
fanoutTTL: chronos.seconds(60),
seenTTL: chronos.seconds(385),
# 2 epochs matching maximum valid attestation lifetime
seenTTL: chronos.seconds(int(SECONDS_PER_SLOT * SLOTS_PER_EPOCH * 2)),
gossipThreshold: -4000,
publishThreshold: -8000,
graylistThreshold: -16000, # also disconnect threshold
Expand Down

0 comments on commit 032b91c

Please sign in to comment.