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 Sep 17, 2019
1 parent c4da348 commit c1ba6eb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion plugins/net_plugin/net_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1552,7 +1552,14 @@ 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();
controller& cc = chain_plug->chain();
if( !cc.fetch_block_by_id( 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 {
Expand Down

0 comments on commit c1ba6eb

Please sign in to comment.