Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
peer-state-actions: Set the peer as warm before monitoring
The peer status must be set to PeerWarm before we start the monitoring thread. Previously we started the monitoring thread first which meant that it was possible for the monitor thread to notice an error and set the peer status to PeerCold only to have it overwritten with PeerWarm. This caused peers to get stuck in warm/hot without a corresponding connection.
- Loading branch information