From 032b91c6313e5da3d2957a4ac67434a5cd4b4447 Mon Sep 17 00:00:00 2001 From: Jacek Sieka Date: Wed, 20 Mar 2024 08:07:16 +0100 Subject: [PATCH] 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 --- beacon_chain/networking/eth2_network.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/beacon_chain/networking/eth2_network.nim b/beacon_chain/networking/eth2_network.nim index f16173bb4e..c140f63a94 100644 --- a/beacon_chain/networking/eth2_network.nim +++ b/beacon_chain/networking/eth2_network.nim @@ -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