mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-11 06:46:10 +00:00
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.
This commit is contained in:
parent
2160d02977
commit
15fc7534cf
@ -46,7 +46,6 @@ type
|
|||||||
pool: PeerPool[A, B]
|
pool: PeerPool[A, B]
|
||||||
responseTimeout: chronos.Duration
|
responseTimeout: chronos.Duration
|
||||||
sleepTime: chronos.Duration
|
sleepTime: chronos.Duration
|
||||||
maxStatusAge: uint64
|
|
||||||
maxHeadAge: uint64
|
maxHeadAge: uint64
|
||||||
toleranceValue: uint64
|
toleranceValue: uint64
|
||||||
getLocalHeadSlot: GetSlotCallback
|
getLocalHeadSlot: GetSlotCallback
|
||||||
@ -116,7 +115,6 @@ proc newSyncManager*[A, B](pool: PeerPool[A, B],
|
|||||||
getBackfillSlotCb: GetSlotCallback,
|
getBackfillSlotCb: GetSlotCallback,
|
||||||
progressPivot: Slot,
|
progressPivot: Slot,
|
||||||
blockVerifier: BlockVerifier,
|
blockVerifier: BlockVerifier,
|
||||||
maxStatusAge = uint64(SLOTS_PER_EPOCH * 4),
|
|
||||||
maxHeadAge = uint64(SLOTS_PER_EPOCH * 1),
|
maxHeadAge = uint64(SLOTS_PER_EPOCH * 1),
|
||||||
sleepTime = (int(SLOTS_PER_EPOCH) *
|
sleepTime = (int(SLOTS_PER_EPOCH) *
|
||||||
int(SECONDS_PER_SLOT)).seconds,
|
int(SECONDS_PER_SLOT)).seconds,
|
||||||
@ -132,7 +130,6 @@ proc newSyncManager*[A, B](pool: PeerPool[A, B],
|
|||||||
|
|
||||||
var res = SyncManager[A, B](
|
var res = SyncManager[A, B](
|
||||||
pool: pool,
|
pool: pool,
|
||||||
maxStatusAge: maxStatusAge,
|
|
||||||
getLocalHeadSlot: getLocalHeadSlotCb,
|
getLocalHeadSlot: getLocalHeadSlotCb,
|
||||||
getLocalWallSlot: getLocalWallSlotCb,
|
getLocalWallSlot: getLocalWallSlotCb,
|
||||||
getSafeSlot: getSafeSlot,
|
getSafeSlot: getSafeSlot,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user