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

Fix block limit classification (#1337)

Block size estimation can decrease, so it was possible that soft limit was reached, but the block is not considered overloaded
This commit is contained in:
SpyCheese 2024-11-18 10:39:20 +04:00 committed by GitHub
parent 413da6cd20
commit 52b010ff34
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 5 deletions

View file

@ -180,6 +180,7 @@ class Collator final : public td::actor::Actor {
td::RefInt256 masterchain_create_fee_, basechain_create_fee_;
std::unique_ptr<block::BlockLimits> block_limits_;
std::unique_ptr<block::BlockLimitStatus> block_limit_status_;
int block_limit_class_ = 0;
ton::LogicalTime min_new_msg_lt{std::numeric_limits<td::uint64>::max()};
block::CurrencyCollection total_balance_, old_total_balance_, total_validator_fees_;
block::CurrencyCollection global_balance_, old_global_balance_, import_created_{0};