From 7b747607566aa62460a4b4a278f2f8eb86f18bc2 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Wed, 16 Aug 2017 19:27:16 +0100 Subject: cryptonote_protocol: kick idle synchronizing peers In case they dropped off downloading for any reason, they'll get sent to download again. --- src/cryptonote_basic/connection_context.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/cryptonote_basic') 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: -- cgit v1.2.3