Skip to content

Commit

Permalink
Merge #3588
Browse files Browse the repository at this point in the history
3588: Ignore monitoring of cold hot cons beeing demoted r=karknu a=karknu

Let the con monitor ignore currently cold connections that where hot and
is in the process of beeing demoted. This means will leave it up to the
demotion job to detect the error and fail.

Co-authored-by: Karl Knutsson <karl.knutsson@iohk.io>
  • Loading branch information
iohk-bors[bot] and karknu authored Jan 26, 2022
2 parents 5e9f4d5 + 6fe1567 commit 4fac197
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ connections PeerSelectionActions{

-- a hot -> cold transition has occurred if it is now cold, and it was hot
asyncDemotion peeraddr PeerCold
| peeraddr `Set.member` activePeers = Just PeerCold
| peeraddr `Set.member` activePeers
, peeraddr `Set.notMember` inProgressDemoteHot = Just PeerCold

asyncDemotion _ _ = Nothing

Expand Down

0 comments on commit 4fac197

Please sign in to comment.