Skip to content

Commit 99e3317

Browse files
committed
GH-1227 Consider a node in sync when it is out of lib catchup since Savanna head is so close to lib and a node can temporarily fall back into head catchup on slight block delays.
1 parent e30e4fa commit 99e3317

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/net_plugin/net_plugin.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ namespace eosio {
189189
static void send_handshakes();
190190
static void send_block_nack_resets();
191191
bool syncing_from_peer() const { return sync_state == lib_catchup; }
192-
bool is_in_sync() const { return sync_state == in_sync; }
192+
bool is_in_sync() const { return sync_state != lib_catchup; }
193193
void sync_reset_fork_db_root_num( const connection_ptr& conn, bool closing );
194194
void sync_timeout(const connection_ptr& c, const boost::system::error_code& ec);
195195
void sync_wait(const connection_ptr& c);

0 commit comments

Comments
 (0)