Skip to content

Commit 621359f

Browse files
committed
outbound-governor: added a comment
1 parent 6dc45a9 commit 621359f

File tree

1 file changed

+2
-0
lines changed
  • ouroboros-network/src/Ouroboros/Network/PeerSelection/Governor

1 file changed

+2
-0
lines changed

ouroboros-network/src/Ouroboros/Network/PeerSelection/Governor/KnownPeers.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ belowTarget actions@PeerSelectionActions { peerSharing }
117117
selectedMap
118118
availablePeers
119119
],
120+
-- NOTE: We set `DoAdvertisePeer` for all peers coming from the
121+
-- inbound side. `AdvertisePeer` is only a local configuration option.
120122
decisionState = st { knownPeers = KnownPeers.setSuccessfulConnectionFlag selected
121123
$ KnownPeers.insert
122124
(Map.map (\ps -> (Just ps, Just DoAdvertisePeer)) selectedMap)

0 commit comments

Comments
 (0)