Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Fix #7767 - node never identified its peer is done syncying
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Aug 16, 2019
1 parent 8d84a95 commit f0b29aa
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion plugins/net_plugin/net_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1667,7 +1667,13 @@ namespace eosio {
if (msg.known_blocks.ids.size() == 0) {
fc_elog( logger,"got a catch up with ids size = 0" );
} else {
verify_catchup(c, msg.known_blocks.pending, msg.known_blocks.ids.back());
const block_id_type& id = msg.known_blocks.ids.back();
if( !my_impl->dispatcher->have_block( id ) ) {
verify_catchup( c, msg.known_blocks.pending, id );
} else {
// we already have the block, so update peer with our view of the world
c->send_handshake();
}
}
} else if (msg.known_blocks.mode == last_irr_catch_up) {
{
Expand Down

0 comments on commit f0b29aa

Please sign in to comment.