1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-02-15 04:32:21 +00:00

Merge pull request #1171 from SpyCheese/half-limits

Decrease block size limits
This commit is contained in:
EmelyanenkoK 2024-09-13 23:36:12 +03:00 committed by GitHub
commit 6318adc1af
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View file

@ -240,7 +240,6 @@ struct ParamLimits {
int classify(td::uint64 value) const;
bool fits(unsigned cls, td::uint64 value) const;
private:
std::array<td::uint32, limits_cnt> limits_;
};

View file

@ -714,6 +714,10 @@ bool Collator::unpack_last_mc_state() {
return fatal_error(limits.move_as_error());
}
block_limits_ = limits.move_as_ok();
LOG(INFO) << "Half size limits";
for (auto& x : block_limits_->bytes.limits_) {
x /= 2;
}
LOG(DEBUG) << "block limits: bytes [" << block_limits_->bytes.underload() << ", " << block_limits_->bytes.soft()
<< ", " << block_limits_->bytes.hard() << "]";
LOG(DEBUG) << "block limits: gas [" << block_limits_->gas.underload() << ", " << block_limits_->gas.soft() << ", "