Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* Const value for pruning

* Some polish
  • Loading branch information
yrong authored May 10, 2023
1 parent 87bccc9 commit 13c048e
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 MaxFinalizedHeadersToKeep:u32 = 200;
pub const MaxExecutionHeadersToKeep:u32 = 1000;
pub const MaxSyncCommitteesToKeep:u32 = 4;
}

#[cfg(not(feature = "minimal"))]
Expand All @@ -627,13 +630,19 @@ parameter_types! {
epoch: 162304,
},
};
pub const MaxFinalizedHeadersToKeep:u32 = 200;
pub const MaxExecutionHeadersToKeep:u32 = 1000;
pub const MaxSyncCommitteesToKeep: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 MaxFinalizedHeadersToKeep = MaxFinalizedHeadersToKeep;
type MaxExecutionHeadersToKeep = MaxExecutionHeadersToKeep;
type MaxSyncCommitteesToKeep = MaxSyncCommitteesToKeep;
type WeightInfo = weights::snowbridge_ethereum_beacon_client::WeightInfo<Runtime>;
}

Expand Down

0 comments on commit 13c048e

Please sign in to comment.