mirror of
https://github.com/monero-project/monero.git
synced 2025-05-07 22:25:00 -04:00
cryptonote_protocol: kick idle synchronizing peers
In case they dropped off downloading for any reason, they'll get sent to download again.
This commit is contained in:
parent
d0a610183a
commit
7b74760756
5 changed files with 44 additions and 0 deletions
|
@ -46,6 +46,7 @@ namespace cryptonote
|
|||
{
|
||||
state_befor_handshake = 0, //default state
|
||||
state_synchronizing,
|
||||
state_standby,
|
||||
state_idle,
|
||||
state_normal
|
||||
};
|
||||
|
@ -69,6 +70,8 @@ namespace cryptonote
|
|||
return "state_befor_handshake";
|
||||
case cryptonote_connection_context::state_synchronizing:
|
||||
return "state_synchronizing";
|
||||
case cryptonote_connection_context::state_standby:
|
||||
return "state_standby";
|
||||
case cryptonote_connection_context::state_idle:
|
||||
return "state_idle";
|
||||
case cryptonote_connection_context::state_normal:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue