Skip to content

Commit

Permalink
Const value for pruning
Browse files Browse the repository at this point in the history
  • Loading branch information
yrong committed May 5, 2023
1 parent a646f7f commit 16925eb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,9 @@ parameter_types! {
epoch: 0,
},
};
pub const FinalizedHeaderPruneThreshold:u32 = 200;
pub const ExecutionHeadersPruneThreshold:u32 = 1000;
pub const SyncCommitteePruneThreshold:u32 = 4;
}

#[cfg(not(feature = "minimal"))]
Expand All @@ -627,13 +630,19 @@ parameter_types! {
epoch: 162304,
},
};
pub const FinalizedHeaderPruneThreshold:u32 = 200;
pub const ExecutionHeadersPruneThreshold:u32 = 1000;
pub const SyncCommitteePruneThreshold:u32 = 4;
}

impl snowbridge_ethereum_beacon_client::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type TimeProvider = pallet_timestamp::Pallet<Runtime>;
type ForkVersions = ChainForkVersions;
type WeakSubjectivityPeriodSeconds = WeakSubjectivityPeriodSeconds;
type FinalizedHeaderPruneThreshold = FinalizedHeaderPruneThreshold;
type ExecutionHeadersPruneThreshold = ExecutionHeadersPruneThreshold;
type SyncCommitteePruneThreshold = SyncCommitteePruneThreshold;
type WeightInfo = weights::snowbridge_ethereum_beacon_client::WeightInfo<Runtime>;
}

Expand Down

0 comments on commit 16925eb

Please sign in to comment.