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 Apr 16, 2024
1 parent b0e513f commit 898a95b
Showing 1 changed file with 0 additions and 1 deletion.
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 898a95b

Please sign in to comment.