Skip to content

Commit

Permalink
sync_master recv_block only called on valid blocks, so don't disconne…
Browse files Browse the repository at this point in the history
…ct if unexpected
  • Loading branch information
heifner committed Sep 22, 2019
1 parent 3f03ede commit 79c90ff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/net_plugin/net_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 79c90ff

Please sign in to comment.