Skip to content

Commit

Permalink
Do not update connection fork_head info if in lib_catchup since we sh…
Browse files Browse the repository at this point in the history
…ortcut out in that situation.
  • Loading branch information
heifner committed Sep 5, 2019
1 parent eb4b9ce commit f1a4b5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/net_plugin/net_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit f1a4b5c

Please sign in to comment.