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

Bugfix in processing message queues; improve out_msg_queue_cleanup

This commit is contained in:
SpyCheese 2023-07-06 11:44:21 +03:00
parent 5dd0c15d07
commit f10c7f54a8
5 changed files with 68 additions and 17 deletions

View file

@ -229,7 +229,7 @@ bool OutputQueueMerger::load() {
}
}
msg_list.resize(j);
return true;
return msg_list.size() > orig_size;
}
} // namespace block

View file

@ -60,6 +60,7 @@ struct OutputQueueMerger {
td::Ref<vm::Cell> outmsg_root_;
bool disabled_;
td::int32 msg_limit_; // -1 - unlimited
Neighbor() = default;
Neighbor(ton::BlockIdExt block_id, td::Ref<vm::Cell> outmsg_root, bool disabled = false, td::int32 msg_limit = -1)
: block_id_(block_id), outmsg_root_(std::move(outmsg_root)), disabled_(disabled), msg_limit_(msg_limit) {
}