Skip to content

Commit

Permalink
Remove MaxPendingAttestations associated type
Browse files Browse the repository at this point in the history
  • Loading branch information
HCastano committed Oct 11, 2024
1 parent 25aec6e commit bd27fbb
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 13 deletions.
2 changes: 0 additions & 2 deletions pallets/attestation/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,13 +310,11 @@ impl Randomness<H256, BlockNumber> for TestPastRandomness {
}
parameter_types! {
pub const MaxEndpointLength: u32 = 3;
pub const MaxPendingAttestations: u32 = 4;
}
impl pallet_staking_extension::Config for Test {
type AttestationHandler = ();
type Currency = Balances;
type MaxEndpointLength = MaxEndpointLength;
type MaxPendingAttestations = MaxPendingAttestations;
type Randomness = TestPastRandomness;
type RuntimeEvent = RuntimeEvent;
type WeightInfo = ();
Expand Down
2 changes: 0 additions & 2 deletions pallets/propagation/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,14 +303,12 @@ impl Randomness<H256, BlockNumber> for TestPastRandomness {

parameter_types! {
pub const MaxEndpointLength: u32 = 3;
pub const MaxPendingAttestations: u32 = 4;
}

impl pallet_staking_extension::Config for Test {
type AttestationHandler = ();
type Currency = Balances;
type MaxEndpointLength = MaxEndpointLength;
type MaxPendingAttestations = MaxPendingAttestations;
type Randomness = TestPastRandomness;
type RuntimeEvent = RuntimeEvent;
type WeightInfo = ();
Expand Down
2 changes: 0 additions & 2 deletions pallets/registry/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,6 @@ impl Randomness<H256, BlockNumber> for TestPastRandomness {

parameter_types! {
pub const MaxEndpointLength: u32 = 3;
pub const MaxPendingAttestations: u32 = 4;
}

impl pallet_staking_extension::Config for Test {
Expand All @@ -309,7 +308,6 @@ impl pallet_staking_extension::Config for Test {
type MaxEndpointLength = MaxEndpointLength;
type Randomness = TestPastRandomness;
type RuntimeEvent = RuntimeEvent;
type MaxPendingAttestations = MaxPendingAttestations;
type WeightInfo = ();
}

Expand Down
3 changes: 0 additions & 3 deletions pallets/staking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,6 @@ pub mod pallet {
/// The maximum length of a threshold server's endpoint address, in bytes.
type MaxEndpointLength: Get<u32>;

/// The maximum number of pending attestations that can be held in the validation queue.
type MaxPendingAttestations: Get<u32>;

/// The handler to use when issuing and verifying attestations.
type AttestationHandler: entropy_shared::AttestationHandler<Self::AccountId>;
}
Expand Down
2 changes: 0 additions & 2 deletions pallets/staking/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,6 @@ impl pallet_parameters::Config for Test {

parameter_types! {
pub const MaxEndpointLength: u32 = 3;
pub const MaxPendingAttestations: u32 = 4;
}

pub(crate) const VALID_QUOTE: [u8; 32] = [0; 32];
Expand All @@ -414,7 +413,6 @@ impl pallet_staking_extension::Config for Test {
type AttestationHandler = MockAttestationHandler;
type Currency = Balances;
type MaxEndpointLength = MaxEndpointLength;
type MaxPendingAttestations = MaxPendingAttestations;
type Randomness = TestPastRandomness;
type RuntimeEvent = RuntimeEvent;
type WeightInfo = ();
Expand Down
2 changes: 0 additions & 2 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,6 @@ impl pallet_staking::Config for Runtime {

parameter_types! {
pub const MaxEndpointLength: u32 = 100;
pub const MaxPendingAttestations: u32 = 250;
}

impl pallet_staking_extension::Config for Runtime {
Expand All @@ -721,7 +720,6 @@ impl pallet_staking_extension::Config for Runtime {
type MaxEndpointLength = MaxEndpointLength;
type Randomness = pallet_babe::RandomnessFromOneEpochAgo<Runtime>;
type RuntimeEvent = RuntimeEvent;
type MaxPendingAttestations = MaxPendingAttestations;
type WeightInfo = weights::pallet_staking_extension::WeightInfo<Runtime>;
}

Expand Down

0 comments on commit bd27fbb

Please sign in to comment.