From 310eaafe2f2957e47f089ab6614a240df262cd9d Mon Sep 17 00:00:00 2001 From: Kevin Heifner Date: Sat, 3 Aug 2024 08:08:34 -0500 Subject: [PATCH] GH-459 syncing from lib+1 --- plugins/net_plugin/net_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/net_plugin/net_plugin.cpp b/plugins/net_plugin/net_plugin.cpp index 038445215b..9a5f214d42 100644 --- a/plugins/net_plugin/net_plugin.cpp +++ b/plugins/net_plugin/net_plugin.cpp @@ -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;