1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00

Bugfix in OutMsgQueueImporter

This commit is contained in:
SpyCheese 2023-08-21 14:33:58 +03:00
parent 7155bf5eca
commit 47c60d8bf0

View file

@ -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<BlockIdExt>(p.second.begin() + i, p.second.begin() + j),
limits * (td::uint32)(j - i));