From 47c60d8bf01983089eeaa604ef26df70d9f581c5 Mon Sep 17 00:00:00 2001 From: SpyCheese Date: Mon, 21 Aug 2023 14:33:58 +0300 Subject: [PATCH] Bugfix in OutMsgQueueImporter --- validator/impl/out-msg-queue-proof.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validator/impl/out-msg-queue-proof.cpp b/validator/impl/out-msg-queue-proof.cpp index 3512bf0d..2ffc52de 100644 --- a/validator/impl/out-msg-queue-proof.cpp +++ b/validator/impl/out-msg-queue-proof.cpp @@ -371,8 +371,8 @@ void OutMsgQueueImporter::get_neighbor_msg_queue_proofs( }; auto limits = last_masterchain_state_->get_imported_msg_queue_limits(dst_shard.workchain); for (auto& p : new_queries) { - ++entry->pending; for (size_t i = 0; i < p.second.size(); i += 16) { + ++entry->pending; size_t j = std::min(i + 16, p.second.size()); get_proof_import(entry, std::vector(p.second.begin() + i, p.second.begin() + j), limits * (td::uint32)(j - i));