Skip to content

Commit

Permalink
GH-459 syncing from lib+1
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Aug 3, 2024
1 parent 7d9b53f commit 310eaaf
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 @@ -2136,7 +2136,7 @@ namespace eosio {

bool request_sent = false;
if( sync_last_requested_num != sync_known_lib_num ) {
uint32_t start = sync_next_expected_num;
uint32_t start = std::max(sync_next_expected_num, chain_info.lib_num+1);
uint32_t end = start + sync_req_span - 1;
if( end > sync_known_lib_num )
end = sync_known_lib_num;
Expand Down

0 comments on commit 310eaaf

Please sign in to comment.