From f1a4b5c327b6d55d79d17adf5be3399e162abb4c Mon Sep 17 00:00:00 2001 From: Kevin Heifner Date: Thu, 5 Sep 2019 13:29:39 -0500 Subject: [PATCH] Do not update connection fork_head info if in lib_catchup since we shortcut out in that situation. --- plugins/net_plugin/net_plugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/net_plugin/net_plugin.cpp b/plugins/net_plugin/net_plugin.cpp index df91dfdfdd9..a0948dd1096 100644 --- a/plugins/net_plugin/net_plugin.cpp +++ b/plugins/net_plugin/net_plugin.cpp @@ -1523,13 +1523,13 @@ namespace eosio { } } if( req.req_blocks.mode == catch_up ) { - c->fork_head = id; - c->fork_head_num = num; fc_ilog( logger, "got a catch_up notice while in ${s}, fork head num = ${fhn} target LIB = ${lib} next_expected = ${ne}", ("s",stage_str(state))("fhn",num)("lib",sync_known_lib_num)("ne", sync_next_expected_num) ); if (state == lib_catchup) return false; set_state(head_catchup); + c->fork_head = id; + c->fork_head_num = num; } else { c->fork_head = block_id_type();