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

View File

@ -2315,7 +2315,8 @@ proc createEth2Node*(rng: ref HmacDrbgContext,
historyLength: 6, historyLength: 6,
historyGossip: 3, historyGossip: 3,
fanoutTTL: chronos.seconds(60), 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, gossipThreshold: -4000,
publishThreshold: -8000, publishThreshold: -8000,
graylistThreshold: -16000, # also disconnect threshold graylistThreshold: -16000, # also disconnect threshold