From 15fc7534cfe04e6ad81fd6c85d14e4f08a7aa5a9 Mon Sep 17 00:00:00 2001 From: Etan Kissling Date: Sun, 13 Feb 2022 16:17:13 +0100 Subject: [PATCH] remove unused `maxStatusAge` from `SyncManager` (#3382) The `SyncManager` has a leftover optional `maxStatusAge` parameter in its constructor that used to configure the libp2p `Status` polling rate. This parameter was replaced with a constant in #1827 and is no longer functional. This patch removes the `maxStatusAge` leftovers. --- beacon_chain/sync/sync_manager.nim | 3 --- 1 file changed, 3 deletions(-) diff --git a/beacon_chain/sync/sync_manager.nim b/beacon_chain/sync/sync_manager.nim index b0a10d1b6..18154dc67 100644 --- a/beacon_chain/sync/sync_manager.nim +++ b/beacon_chain/sync/sync_manager.nim @@ -46,7 +46,6 @@ type pool: PeerPool[A, B] responseTimeout: chronos.Duration sleepTime: chronos.Duration - maxStatusAge: uint64 maxHeadAge: uint64 toleranceValue: uint64 getLocalHeadSlot: GetSlotCallback @@ -116,7 +115,6 @@ proc newSyncManager*[A, B](pool: PeerPool[A, B], getBackfillSlotCb: GetSlotCallback, progressPivot: Slot, blockVerifier: BlockVerifier, - maxStatusAge = uint64(SLOTS_PER_EPOCH * 4), maxHeadAge = uint64(SLOTS_PER_EPOCH * 1), sleepTime = (int(SLOTS_PER_EPOCH) * int(SECONDS_PER_SLOT)).seconds, @@ -132,7 +130,6 @@ proc newSyncManager*[A, B](pool: PeerPool[A, B], var res = SyncManager[A, B]( pool: pool, - maxStatusAge: maxStatusAge, getLocalHeadSlot: getLocalHeadSlotCb, getLocalWallSlot: getLocalWallSlotCb, getSafeSlot: getSafeSlot,