Skip to content

Commit

Permalink
Merge pull request #7949 from EOSIO/unknown-block-exception-1.8
Browse files Browse the repository at this point in the history
net_plugin correctly handle unknown_block_exception - 1.8
  • Loading branch information
arhag authored Sep 18, 2019
2 parents c4db4a5 + 58fee31 commit 6d8f9b7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugins/net_plugin/net_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1502,7 +1502,11 @@ namespace eosio {
c->enqueue( note );
}
c->syncing = true;
if( cc.get_block_id_for_num( msg.head_num ) != msg.head_id ) {
bool on_fork = true;
try {
on_fork = cc.get_block_id_for_num( msg.head_num ) != msg.head_id;
} catch( ... ) {}
if( on_fork ) {
request_message req;
req.req_blocks.mode = catch_up;
req.req_trx.mode = none;
Expand Down

0 comments on commit 6d8f9b7

Please sign in to comment.