Skip to content

Commit

Permalink
GH-459 Revert unneeded sync_wait
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Aug 2, 2024
1 parent f387136 commit c4b173f
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 @@ -2191,12 +2191,11 @@ namespace eosio {
return;
}

if( sync_state != lib_catchup ) {
if( sync_state != lib_catchup || !sync_source ) {
set_state( lib_catchup );
sync_next_expected_num = chain_info.lib_num + 1;
} else {
peer_dlog(c, "already syncing, start sync ignored");
c->sync_wait();
return;
}

Expand Down

0 comments on commit c4b173f

Please sign in to comment.