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:
commit
6318adc1af
2 changed files with 4 additions and 1 deletions
|
@ -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_;
|
||||
};
|
||||
|
||||
|
|
|
@ -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() << ", "
|
||||
|
|
Loading…
Reference in a new issue