Skip to content

Commit

Permalink
extend seen ttl to cover 2 epochs
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 committed Mar 19, 2024
1 parent d4d2716 commit 4885d83
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 4885d83

Please sign in to comment.