From ee578213e3386dca5d1467a1d1fcee8b0865bb72 Mon Sep 17 00:00:00 2001 From: SpyCheese Date: Tue, 18 Jun 2024 12:33:38 +0300 Subject: [PATCH] Use have_unprocessed_account_dispatch_queue_ in collator --- validator/impl/collator.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/validator/impl/collator.cpp b/validator/impl/collator.cpp index 2df8c86a1..9add1cd5d 100644 --- a/validator/impl/collator.cpp +++ b/validator/impl/collator.cpp @@ -3490,6 +3490,9 @@ bool Collator::process_inbound_message(Ref enq_msg, ton::LogicalT * @returns True if the processing was successful, false otherwise. */ bool Collator::process_inbound_internal_messages() { + if (have_unprocessed_account_dispatch_queue_) { + return true; + } while (!block_full_ && !nb_out_msgs_->is_eof()) { block_full_ = !block_limit_status_->fits(block::ParamLimits::cl_normal); if (block_full_) { @@ -4026,7 +4029,7 @@ bool Collator::process_new_messages(bool enqueue_only) { block::NewOutMsg msg = new_msgs.top(); new_msgs.pop(); block_limit_status_->extra_out_msgs--; - if (block_full_ && !enqueue_only) { + if ((block_full_ || have_unprocessed_account_dispatch_queue_) && !enqueue_only) { LOG(INFO) << "BLOCK FULL, enqueue all remaining new messages"; enqueue_only = true; }