aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_basic/connection_context.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-08-16 19:27:16 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-08-16 22:24:50 +0100
commit7b747607566aa62460a4b4a278f2f8eb86f18bc2 (patch)
treeed20fdc58cd97a6b6ca3def513078608b87ff5f5 /src/cryptonote_basic/connection_context.h
parentMerge pull request #2297 (diff)
downloadmonero-7b747607566aa62460a4b4a278f2f8eb86f18bc2.tar.xz
cryptonote_protocol: kick idle synchronizing peers
In case they dropped off downloading for any reason, they'll get sent to download again.
Diffstat (limited to '')
-rw-r--r--src/cryptonote_basic/connection_context.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cryptonote_basic/connection_context.h b/src/cryptonote_basic/connection_context.h
index 06f66120b..28bd73918 100644
--- a/src/cryptonote_basic/connection_context.h
+++ b/src/cryptonote_basic/connection_context.h
@@ -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: