fix(ah-staking): stall detection grace period, MinerPages fix, and simulation tools

- Add 3-session grace period to stall detection to allow RC XCM round-trip
  before triggering era recovery (StallDetectionCount storage added)
- Fix plan_new_era() to always increment CurrentEra regardless of
  ElectionProvider::start() result, preventing infinite retry loops
- Fix MinerPages from 2 to 32 to match Pages config (was causing
  incomplete OCW solutions and election failures)
- Bump AH spec_version to 1_020_007
- Add subxt example scripts for simulation and mainnet operations
- Remove obsolete fix_force_era.rs (replaced by sim_reset_election.rs)
This commit is contained in:
2026-02-19 17:16:43 +03:00
parent 21d1bc2375
commit cc156a1d61
17 changed files with 3254 additions and 130 deletions
@@ -138,7 +138,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: alloc::borrow::Cow::Borrowed("asset-hub-pezkuwichain"),
impl_name: alloc::borrow::Cow::Borrowed("asset-hub-pezkuwichain"),
authoring_version: 1,
spec_version: 1_020_006,
spec_version: 1_020_007,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 16,
@@ -171,7 +171,7 @@ parameter_types! {
pub MinerTxPriority: TransactionPriority = TransactionPriority::max_value() / 2;
/// Try and run the OCW miner 4 times during the unsigned phase.
pub OffchainRepeat: BlockNumber = UnsignedPhase::get() / 4;
pub storage MinerPages: u32 = 2;
pub storage MinerPages: u32 = 32;
}
impl multi_block::unsigned::Config for Runtime {