Skip to content

Commit

Permalink
Use have_unprocessed_account_dispatch_queue_ in collator
Browse files Browse the repository at this point in the history
  • Loading branch information
SpyCheese committed Jun 18, 2024
1 parent ea00c32 commit ee57821
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion validator/impl/collator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3490,6 +3490,9 @@ bool Collator::process_inbound_message(Ref<vm::CellSlice> 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_) {
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit ee57821

Please sign in to comment.