mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Move some constants to global config (#484)
This commit is contained in:
parent
580884033b
commit
1d42c38122
24 changed files with 218 additions and 88 deletions
|
@ -126,6 +126,10 @@ class MasterchainStateQ : public MasterchainState, public ShardStateQ {
|
|||
ValidatorSessionConfig get_consensus_config() const override {
|
||||
return config_->get_consensus_config();
|
||||
}
|
||||
block::SizeLimitsConfig::ExtMsgLimits get_ext_msg_limits() const override {
|
||||
auto R = config_->get_size_limits_config();
|
||||
return R.is_error() ? block::SizeLimitsConfig::ExtMsgLimits() : R.ok_ref().ext_msg_limits;
|
||||
}
|
||||
BlockIdExt last_key_block_id() const override;
|
||||
BlockIdExt next_key_block_id(BlockSeqno seqno) const override;
|
||||
BlockIdExt prev_key_block_id(BlockSeqno seqno) const override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue