From 79c90ff39d4234a32302f5da245f3b4a54140455 Mon Sep 17 00:00:00 2001 From: Kevin Heifner Date: Sat, 21 Sep 2019 10:48:02 -0500 Subject: [PATCH] sync_master recv_block only called on valid blocks, so don't disconnect if unexpected --- plugins/net_plugin/net_plugin.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/net_plugin/net_plugin.cpp b/plugins/net_plugin/net_plugin.cpp index 93ce9f4ae0d..6f1e4c79bff 100644 --- a/plugins/net_plugin/net_plugin.cpp +++ b/plugins/net_plugin/net_plugin.cpp @@ -1583,9 +1583,8 @@ namespace eosio { fc_dlog(logger, "got block ${bn} from ${p}",("bn",blk_num)("p",c->peer_name())); if (state == lib_catchup) { if (blk_num != sync_next_expected_num) { - fc_wlog( logger, "expected block ${ne} but got ${bn}, closing connection: ${p}", + fc_wlog( logger, "expected block ${ne} but got ${bn}, from connection: ${p}", ("ne",sync_next_expected_num)("bn",blk_num)("p",c->peer_name()) ); - my_impl->close(c); return; } sync_next_expected_num = blk_num + 1;