mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Merge branch 'testnet' into accelerator
This commit is contained in:
commit
4b68c7b165
4 changed files with 27 additions and 13 deletions
|
@ -3865,6 +3865,7 @@ bool Collator::process_dispatch_queue() {
|
|||
}
|
||||
++total_count;
|
||||
if (total_count >= max_total_count[iter]) {
|
||||
dispatch_queue_total_limit_reached_ = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -4815,7 +4816,21 @@ bool Collator::check_block_overload() {
|
|||
<< " size_estimate=" << block_size_estimate_
|
||||
<< " collated_size_estimate=" << block_limit_status_->collated_data_stat.estimate_proof_size();
|
||||
auto cl = block_limit_status_->classify();
|
||||
if (cl <= block::ParamLimits::cl_underload) {
|
||||
if (cl >= block::ParamLimits::cl_soft || dispatch_queue_total_limit_reached_) {
|
||||
std::string message = "block is overloaded ";
|
||||
if (cl >= block::ParamLimits::cl_soft) {
|
||||
message += PSTRING() << "(category " << cl << ")";
|
||||
} else {
|
||||
message += "(long dispatch queue processing)";
|
||||
}
|
||||
if (out_msg_queue_size_ > SPLIT_MAX_QUEUE_SIZE) {
|
||||
LOG(INFO) << message << ", but don't set overload history because out_msg_queue size is too big to split ("
|
||||
<< out_msg_queue_size_ << " > " << SPLIT_MAX_QUEUE_SIZE << ")";
|
||||
} else {
|
||||
overload_history_ |= 1;
|
||||
LOG(INFO) << message;
|
||||
}
|
||||
} else if (cl <= block::ParamLimits::cl_underload) {
|
||||
if (out_msg_queue_size_ > MERGE_MAX_QUEUE_SIZE) {
|
||||
LOG(INFO)
|
||||
<< "block is underloaded, but don't set underload history because out_msg_queue size is too big to merge ("
|
||||
|
@ -4824,15 +4839,6 @@ bool Collator::check_block_overload() {
|
|||
underload_history_ |= 1;
|
||||
LOG(INFO) << "block is underloaded";
|
||||
}
|
||||
} else if (cl >= block::ParamLimits::cl_soft) {
|
||||
if (out_msg_queue_size_ > SPLIT_MAX_QUEUE_SIZE) {
|
||||
LOG(INFO) << "block is overloaded (category " << cl
|
||||
<< "), but don't set overload history because out_msg_queue size is too big to split ("
|
||||
<< out_msg_queue_size_ << " > " << SPLIT_MAX_QUEUE_SIZE << ")";
|
||||
} else {
|
||||
overload_history_ |= 1;
|
||||
LOG(INFO) << "block is overloaded (category " << cl << ")";
|
||||
}
|
||||
} else {
|
||||
LOG(INFO) << "block is loaded normally";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue