Skip to content

Commit

Permalink
Only request_message for our head greater than msg.head when we suspe…
Browse files Browse the repository at this point in the history
…ct they are on a fork
  • Loading branch information
heifner committed Aug 30, 2019
1 parent 3c440df commit ffbf338
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions plugins/net_plugin/net_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1499,10 +1499,12 @@ namespace eosio {
c->enqueue( note );
}
c->syncing = true;
request_message req;
req.req_blocks.mode = catch_up;
req.req_trx.mode = none;
c->enqueue( req );
if( cc.get_block_id_for_num( msg.head_num ) != msg.head_id ) {
request_message req;
req.req_blocks.mode = catch_up;
req.req_trx.mode = none;
c->enqueue( req );
}
return;
}
fc_elog( logger, "sync check failed to resolve status" );
Expand Down

0 comments on commit ffbf338

Please sign in to comment.