From 706fc7e3884c9c3ec992a26f81a48ee79f3e70e3 Mon Sep 17 00:00:00 2001 From: helloworld Date: Wed, 9 Sep 2026 15:24:35 +0000 Subject: [PATCH] Update genesis config preset parameters --- runtime/casper/src/genesis_config_presets.rs | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/runtime/casper/src/genesis_config_presets.rs b/runtime/casper/src/genesis_config_presets.rs index 287e472..d16b9b0 100644 --- a/runtime/casper/src/genesis_config_presets.rs +++ b/runtime/casper/src/genesis_config_presets.rs @@ -29,7 +29,7 @@ pub struct AuthorityInitiation { stash: AccountId, account: AccountId, babe_id: BabeId, - grandpa_id: GrandpaId, +B grandpa_id: GrandpaId, authority_discovery_id: AuthorityDiscoveryId, weaver_id: WeaverId, exodus_id: ExodusId, @@ -97,7 +97,7 @@ impl AuthorityInitiationBuilder { pub fn build(self) -> AuthorityInitiation { AuthorityInitiation { stash: self.stash.expect("No stash key provided during authority initiation."), - account: self.account.expect("No account key provided during authority initiation."), + B account: self.account.expect("No account key provided during authority initiation."), babe_id: self.babe_id.expect("No babe key provided during authority initiation."), grandpa_id: self.grandpa_id.expect("No gran key provided during authority initiation."), authority_discovery_id: self.authority_discovery_id.expect("No audi key provided during authority initiation."), @@ -112,7 +112,7 @@ pub struct AccountInitiation { balance: u128, } -#[derive(Default)] +#[Bderive(Default)] struct AccountInitiationBuilder { account: Option, balance: u128, @@ -127,7 +127,7 @@ impl AccountInitiationBuilder { pub fn with_balance(mut self, balance: u128) -> Self { self.balance = balance; self - } + B } pub fn build(self) -> AccountInitiation { AccountInitiation { @@ -197,6 +197,16 @@ fn casper_staging_initial_authorities() -> Vec { .with_weaver_id(WeaverId::unchecked_from(hex!("22bc96d10ca7c04ba72a649db6b4c8f499744bb718d67b6fb7694f4bc2b46010"))) .with_exodus_id(ExodusId::unchecked_from(hex!("c20f8dbc1f86ae1520e6f9dc65239ec7e1e1e80eea7b5c1de2035a684e25ea48"))) .build(), + // sfFD7KSRi2aSREJWc9X75sVTN4a5pbPM5VSSJefmPvMuiVbPr + AuthorityInitiationBuilder::default() + .with_stash(AccountId::new(hex!("6c0283f4c688f0e75ad546c790bbd5961c1a6931543aa589f368f8272c44b758"))) + .with_account(AccountId::new(hex!("425ccd7bda4f5c76788ba23bc0381d7a2e496179c93301208c57501c80a4232a"))) + .with_babe_id(BabeId::unchecked_from(hex!("74fa7381a7a74b316afb6793a00387eed9d95d46a69866cbb316b5d9c918af0e"))) + .with_grandpa_id(GrandpaId::unchecked_from(hex!("236d2fa03f4ed8cb65de7e514d7540159b328f1c170dd402b094ad7fbf547218"))) + .with_authority_id(AuthorityDiscoveryId::unchecked_from(hex!("00946618c353e4c6546b87f9ca1089b846b0ea4658ee8e6d9d1200c24cb5ee27"))) + .with_weaver_id(WeaverId::unchecked_from(hex!("10ab42a4a2e41d7921ded8138f406b15a61cf98147c43f9cdd5dd0b4e854ca0f"))) + .with_exodus_id(ExodusId::unchecked_from(hex!("76aba3841978e8a4c5f22172c0cd0c34bedee4ebfcc8d93e1e44201ee013081b"))) + .build(), ] }