Skip to content

Commit e4ecec8

Browse files
Review bugfix.
1 parent 8e632d4 commit e4ecec8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/p2p/Join/v2/syncFinished.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export function selectNodesFromReadyList(mode: string): P2P.NodeListTypes.Node[]
144144

145145
if (config.debug.readyNodeDelay > 0) {
146146
nestedCountersInstance.countEvent('p2p', `selectNodesFromReadyList: only returning nodes from the ready list that were added at least ${config.debug.readyNodeDelay} seconds ago`)
147-
return NodeList.readyByTimeAndIdOrder.slice(0, config.p2p.allowActivePerCycle).filter((node) => CycleChain.newest.start >= node.readyTimestamp + config.debug.readyNodeDelay)
147+
return NodeList.readyByTimeAndIdOrder.slice(0, nodesToAllowActive).filter((node) => CycleChain.newest.start >= node.readyTimestamp + config.debug.readyNodeDelay)
148148
}
149149

150150
return NodeList.readyByTimeAndIdOrder.slice(0, nodesToAllowActive)

0 commit comments

Comments
 (0)