Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

Commit aa3a75a

Browse files
authored
Remove MaxExecutionHeadersToKeep (#129)
1 parent 9293295 commit aa3a75a

File tree

4 files changed

+1
-13
lines changed
  • bridges/snowbridge/pallets
  • cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src

4 files changed

+1
-13
lines changed

bridges/snowbridge/pallets/ethereum-client/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,6 @@ pub mod pallet {
8484
type RuntimeEvent: From<Event<Self>> + IsType<<Self as frame_system::Config>::RuntimeEvent>;
8585
#[pallet::constant]
8686
type ForkVersions: Get<ForkVersions>;
87-
/// Maximum number of execution headers to keep
88-
#[pallet::constant]
89-
type MaxExecutionHeadersToKeep: Get<u32>;
9087
type WeightInfo: WeightInfo;
9188
}
9289

bridges/snowbridge/pallets/ethereum-client/src/mock.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,11 @@ parameter_types! {
9898
epoch: 0,
9999
}
100100
};
101-
pub const ExecutionHeadersPruneThreshold: u32 = 8192;
102101
}
103102

104103
impl ethereum_beacon_client::Config for Test {
105104
type RuntimeEvent = RuntimeEvent;
106105
type ForkVersions = ChainForkVersions;
107-
type MaxExecutionHeadersToKeep = ExecutionHeadersPruneThreshold;
108106
type WeightInfo = ();
109107
}
110108

bridges/snowbridge/pallets/inbound-queue/src/mock.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use super::*;
44

55
use frame_support::{
66
derive_impl, parameter_types,
7-
traits::{ConstU128, ConstU32, Everything},
7+
traits::{ConstU32, Everything},
88
weights::IdentityFee,
99
};
1010
use hex_literal::hex;
@@ -88,7 +88,6 @@ impl pallet_balances::Config for Test {
8888
}
8989

9090
parameter_types! {
91-
pub const ExecutionHeadersPruneThreshold: u32 = 10;
9291
pub const ChainForkVersions: ForkVersions = ForkVersions{
9392
genesis: Fork {
9493
version: [0, 0, 0, 1], // 0x00000001
@@ -116,7 +115,6 @@ parameter_types! {
116115
impl snowbridge_pallet_ethereum_client::Config for Test {
117116
type RuntimeEvent = RuntimeEvent;
118117
type ForkVersions = ChainForkVersions;
119-
type MaxExecutionHeadersToKeep = ExecutionHeadersPruneThreshold;
120118
type WeightInfo = ();
121119
}
122120

cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/lib.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -640,14 +640,9 @@ parameter_types! {
640640
};
641641
}
642642

643-
parameter_types! {
644-
pub const MaxExecutionHeadersToKeep: u32 = 8192 * 20;
645-
}
646-
647643
impl snowbridge_pallet_ethereum_client::Config for Runtime {
648644
type RuntimeEvent = RuntimeEvent;
649645
type ForkVersions = ChainForkVersions;
650-
type MaxExecutionHeadersToKeep = MaxExecutionHeadersToKeep;
651646
type WeightInfo = weights::snowbridge_pallet_ethereum_client::WeightInfo<Runtime>;
652647
}
653648

0 commit comments

Comments
 (0)