Skip to content

Commit

Permalink
p2p-governor: fixed setConnectTime
Browse files Browse the repository at this point in the history
'setConnectTime' is supposed to update 'availableToConnect' and
`nextConnectTimes' rather than 'availableForGossip' and
'nextGossipTimes'.
  • Loading branch information
coot committed Mar 2, 2021
1 parent 5fa3e71 commit 34b7295
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -364,11 +364,11 @@ setConnectTime peeraddrs time
} =
assert (all (`Map.member` allPeers) peeraddrs) $
let knownPeers' = knownPeers {
availableForGossip =
availableToConnect =
availableToConnect
Set.\\ peeraddrs,

nextGossipTimes =
nextConnectTimes =
List.foldl' (\psq peeraddr -> PSQ.insert peeraddr time () psq)
nextConnectTimes
peeraddrs
Expand Down

0 comments on commit 34b7295

Please sign in to comment.