Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
bump staking async
  • Loading branch information
Ank4n committed Dec 12, 2025
commit de4c6644a0b7962cbfbfc735b30e892a8465bf4d
14 changes: 7 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pallet-ah-migrator = { path = "pallets/ah-migrator", default-features = false }
pallet-rc-migrator = { path = "pallets/rc-migrator", default-features = false }
pallet-ah-ops = { path = "pallets/ah-ops", default-features = false }
pallet-election-provider-multi-block = { version = "0.5.0", default-features = false }
pallet-staking-async = { version = "0.7.0", default-features = false }
pallet-staking-async = { version = "0.7.1", default-features = false }
hex = { version = "0.4.3", default-features = false }
rand = { version = "0.9.2" }
impl-trait-for-tuples = { version = "0.2.3", default-features = false }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,8 @@ impl pallet_staking_async::Config for Runtime {
type EventListeners = (NominationPools, DelegatedStaking);
// Note used; don't care.
type MaxInvulnerables = frame_support::traits::ConstU32<20>;
type PlanningEraOffset =
pallet_staking_async::PlanningEraOffsetOf<Self, RelaySessionDuration, ConstU32<10>>;
// This will start election for the next era as soon as an era starts.
type PlanningEraOffset = ConstU32<6>;
type RcClientInterface = StakingRcClient;
type MaxEraDuration = MaxEraDuration;
type WeightInfo = weights::pallet_staking_async::WeightInfo<Runtime>;
Expand All @@ -425,6 +425,8 @@ impl pallet_staking_async_rc_client::Config for Runtime {
type AHStakingInterface = Staking;
type SendToRelayChain = StakingXcmToRelayChain;
type MaxValidatorSetRetries = ConstU32<64>;
// Export elected validator set at end of session 4.
type ValidatorSetExportSession = ConstU32<4>;
}

#[derive(Encode, Decode)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,8 @@ impl pallet_staking_async_rc_client::Config for Runtime {
type AHStakingInterface = Staking;
type SendToRelayChain = StakingXcmToRelayChain;
type MaxValidatorSetRetries = ConstU32<64>;
// export validators as soon as election results are ready.
type ValidatorSetExportSession = ConstU32<0>;
}

#[derive(Encode, Decode)]
Expand Down
Loading