Skip to content

Commit

Permalink
peer-selection: remove not needed subtraction
Browse files Browse the repository at this point in the history
Local roots are always disjoint with big ledger peers.  This is ensured
when we are adding new big ledger peers and when the local roots has
changed, there's no need to subtract them in `EstablishedPeers.aboveTargetOther`.
  • Loading branch information
coot committed May 7, 2024
1 parent 24e1771 commit 1cf02a7
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,6 @@ aboveTargetOther actions
localWarmPeers = LocalRootPeers.keysSet localRootPeers
`Set.intersection` EstablishedPeers.toSet establishedPeers
Set.\\ activePeers
Set.\\ bigLedgerPeersSet
-- One constraint on how many to demote is the difference in the
-- number we have now vs the target. The other constraint is that
-- we pick established peers that are not also active. These
Expand Down

0 comments on commit 1cf02a7

Please sign in to comment.