Skip to content

Commit

Permalink
Only pass active nodelist as argument for gossipScaleRoute and _reque…
Browse files Browse the repository at this point in the history
…stNetworkScaling
  • Loading branch information
dnlbui committed Aug 21, 2024
1 parent 04cf6ac commit 3e1be4a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/p2p/CycleAutoScale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ const gossipScaleRoute: P2P.P2PTypes.GossipHandler<P2P.CycleAutoScaleTypes.Signe
tracker,
sender,
nodelistFromStates([
P2P.P2PTypes.NodeStatus.ACTIVE,
P2P.P2PTypes.NodeStatus.READY,
P2P.P2PTypes.NodeStatus.SYNCING,
P2P.P2PTypes.NodeStatus.ACTIVE
]),
false,
2
Expand Down Expand Up @@ -150,9 +148,7 @@ function _requestNetworkScaling(upOrDown) {
'',
null,
nodelistFromStates([
P2P.P2PTypes.NodeStatus.ACTIVE,
P2P.P2PTypes.NodeStatus.READY,
P2P.P2PTypes.NodeStatus.SYNCING,
P2P.P2PTypes.NodeStatus.ACTIVE
]),
true,
2
Expand Down

0 comments on commit 3e1be4a

Please sign in to comment.