Skip to content

Commit 5cdf8b2

Browse files
drmickRexagon
authored andcommitted
feature(collator): add mc_block_max_interval_ms to CollationConfig
1 parent afe2f14 commit 5cdf8b2

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/models/config/params.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,7 @@ impl<'a> Load<'a> for CatchainConfig {
656656
/// collation_config_tycho#a6
657657
/// shuffle_mc_validators:Bool
658658
/// mc_block_min_interval_ms:uint32
659+
/// empty_sc_block_interval_ms:uint32
659660
/// max_uncommitted_chain_length:uint8
660661
/// wu_used_to_import_next_anchor:uint64
661662
/// msgs_exec_params:MsgsExecutionParams
@@ -665,6 +666,7 @@ impl<'a> Load<'a> for CatchainConfig {
665666
/// collation_config_tycho#a7
666667
/// shuffle_mc_validators:Bool
667668
/// mc_block_min_interval_ms:uint32
669+
/// mc_block_max_interval_ms:uint32
668670
/// empty_sc_block_interval_ms:uint32
669671
/// max_uncommitted_chain_length:uint8
670672
/// wu_used_to_import_next_anchor:uint64
@@ -674,7 +676,7 @@ impl<'a> Load<'a> for CatchainConfig {
674676
/// ```
675677
#[cfg(feature = "tycho")]
676678
#[derive(Debug, Clone, Eq, PartialEq, Store, Load, Default)]
677-
#[tlb(tag = "#a6")]
679+
#[tlb(tag = ["#a6", "#a7"])]
678680
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
679681
pub struct CollationConfig {
680682
/// Change the order of validators in the masterchain validators list.
@@ -683,6 +685,10 @@ pub struct CollationConfig {
683685
/// Minimum interval between master blocks.
684686
pub mc_block_min_interval_ms: u32,
685687

688+
/// Maximum interval between master blocks.
689+
#[tlb(since_tag = 1)]
690+
pub mc_block_max_interval_ms: u32,
691+
686692
/// Time to wait before collating an empty shard block.
687693
pub empty_sc_block_interval_ms: u32,
688694

src/models/global_version.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ decl_global_capability! {
217217
/// Allows to suspend accounts by special extra currencies.
218218
///
219219
/// Mask: `0x200000000`
220-
CapSuspendByMarks = 33
220+
CapSuspendByMarks = 33,
221221

222222
/// Omits master block history to save storage space.
223223
///

0 commit comments

Comments
 (0)