extend seen ttl to cover 2 epochs (#6098)

this allows us to drop these useless messages earlier in the pipeline

https://github.com/ethereum/consensus-specs/pull/3627
This commit is contained in:
Jacek Sieka 2024-03-20 08:07:16 +01:00 committed by GitHub
parent 4c0b9efb30
commit 032b91c631
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -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