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

bugfix in collator

This commit is contained in:
ton 2020-04-02 22:13:18 +04:00
parent 0e4277313c
commit 54b40df4aa

View file

@ -1628,14 +1628,15 @@ bool Collator::do_collate() {
if (max_lt == start_lt) {
++max_lt;
}
// 1.1. delete delivered messages from output queue
if (!out_msg_queue_cleanup()) {
return fatal_error("cannot scan OutMsgQueue and remove already delivered messages");
}
// 1.2. re-adjust neighbors' out_msg_queues (for oneself)
// NB: interchanged 1.2 and 1.1 (is this always correct?)
// 1.1. re-adjust neighbors' out_msg_queues (for oneself)
if (!add_trivial_neighbor()) {
return fatal_error("cannot add previous block as a trivial neighbor");
}
// 1.2. delete delivered messages from output queue
if (!out_msg_queue_cleanup()) {
return fatal_error("cannot scan OutMsgQueue and remove already delivered messages");
}
// 1.3. create OutputQueueMerger from adjusted neighbors
CHECK(!nb_out_msgs_);
LOG(DEBUG) << "creating OutputQueueMerger";