Skip to content

Commit

Permalink
Review bugfix.
Browse files Browse the repository at this point in the history
  • Loading branch information
mhanson-github committed Dec 10, 2024
1 parent 8e632d4 commit e4ecec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/p2p/Join/v2/syncFinished.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export function selectNodesFromReadyList(mode: string): P2P.NodeListTypes.Node[]

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

return NodeList.readyByTimeAndIdOrder.slice(0, nodesToAllowActive)
Expand Down

0 comments on commit e4ecec8

Please sign in to comment.