Skip to content

Commit

Permalink
GH-670 Backport fix from GH-671 for testing of syncing
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Aug 29, 2024
1 parent 7c9e455 commit 7fbeede
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/net_plugin/net_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2122,7 +2122,7 @@ namespace eosio {
set_state( lib_catchup );
sync_last_requested_num = 0;
sync_next_expected_num = chain_info.lib_num + 1;
} else if (is_sync_request_ahead_allowed(sync_next_expected_num)) {
} else if (sync_last_requested_num > 0 && is_sync_request_ahead_allowed(sync_next_expected_num)) {
// break
} else {
peer_dlog(c, "already syncing, start sync ignored");
Expand Down

0 comments on commit 7fbeede

Please sign in to comment.