From edbde1cdeae4a86bc2f10c19938a1ec0caeb815a Mon Sep 17 00:00:00 2001 From: Steve Degosserie <723552+stiiifff@users.noreply.github.com> Date: Wed, 24 Sep 2025 14:26:19 +0200 Subject: [PATCH] fix: Tweak Stagenet runtime params for StorageHub (#188) Additionnally, fix prefunded account balances based on SUPPLY_FACTOR in Stagenet & Testnet runtimes. --- .../stagenet/src/configs/runtime_params.rs | 10 +++++----- .../stagenet/src/genesis_config_presets.rs | 2 +- .../testnet/src/genesis_config_presets.rs | 2 +- test/.papi/metadata/datahaven.scale | Bin 607145 -> 607145 bytes 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/operator/runtime/stagenet/src/configs/runtime_params.rs b/operator/runtime/stagenet/src/configs/runtime_params.rs index e0c6a368..43666fdf 100644 --- a/operator/runtime/stagenet/src/configs/runtime_params.rs +++ b/operator/runtime/stagenet/src/configs/runtime_params.rs @@ -209,7 +209,7 @@ pub mod dynamic_params { /// volunteered BSPs is ~1%. #[codec(index = 23)] #[allow(non_upper_case_globals)] - pub static BasicReplicationTarget: ReplicationTargetType = 7; + pub static BasicReplicationTarget: ReplicationTargetType = 1; /// The amount of BSPs that a standard security storage request should use as the replication target. /// @@ -218,7 +218,7 @@ pub mod dynamic_params { /// volunteered BSPs is ~0.1%. #[codec(index = 24)] #[allow(non_upper_case_globals)] - pub static StandardReplicationTarget: ReplicationTargetType = 12; + pub static StandardReplicationTarget: ReplicationTargetType = 2; /// The amount of BSPs that a high security storage request should use as the replication target. /// @@ -227,7 +227,7 @@ pub mod dynamic_params { /// volunteered BSPs is ~0.01%. #[codec(index = 25)] #[allow(non_upper_case_globals)] - pub static HighSecurityReplicationTarget: ReplicationTargetType = 17; + pub static HighSecurityReplicationTarget: ReplicationTargetType = 3; /// The amount of BSPs that a super high security storage request should use as the replication target. /// @@ -236,7 +236,7 @@ pub mod dynamic_params { /// volunteered BSPs is ~0.001%. #[codec(index = 26)] #[allow(non_upper_case_globals)] - pub static SuperHighSecurityReplicationTarget: ReplicationTargetType = 22; + pub static SuperHighSecurityReplicationTarget: ReplicationTargetType = 4; /// The amount of BSPs that an ultra high security storage request should use as the replication target. /// @@ -245,7 +245,7 @@ pub mod dynamic_params { /// volunteered BSPs is ~0.0001%. #[codec(index = 27)] #[allow(non_upper_case_globals)] - pub static UltraHighSecurityReplicationTarget: ReplicationTargetType = 26; + pub static UltraHighSecurityReplicationTarget: ReplicationTargetType = 5; /// The maximum amount of BSPs that a user can require a storage request to use as the replication target. /// diff --git a/operator/runtime/stagenet/src/genesis_config_presets.rs b/operator/runtime/stagenet/src/genesis_config_presets.rs index cd86db9c..6f315eae 100644 --- a/operator/runtime/stagenet/src/genesis_config_presets.rs +++ b/operator/runtime/stagenet/src/genesis_config_presets.rs @@ -29,7 +29,7 @@ fn testnet_genesis( balances: endowed_accounts .iter() .cloned() - .map(|k| (k, 1u128 << 110)) + .map(|k| (k, 1u128 << 80)) .collect::>(), }, babe: pallet_babe::GenesisConfig { diff --git a/operator/runtime/testnet/src/genesis_config_presets.rs b/operator/runtime/testnet/src/genesis_config_presets.rs index dedbcebb..9f345904 100644 --- a/operator/runtime/testnet/src/genesis_config_presets.rs +++ b/operator/runtime/testnet/src/genesis_config_presets.rs @@ -29,7 +29,7 @@ fn testnet_genesis( balances: endowed_accounts .iter() .cloned() - .map(|k| (k, 1u128 << 110)) + .map(|k| (k, 1u128 << 80)) .collect::>(), }, babe: pallet_babe::GenesisConfig { diff --git a/test/.papi/metadata/datahaven.scale b/test/.papi/metadata/datahaven.scale index fc1bda067c882030d27217f89d81cfa2c5aee855..4461c0ceacc7021df2cc6c18efc6720cdb496f14 100644 GIT binary patch delta 76 zcmV-S0JHz8hb5_pC4hthgaU*Egam{Iga(8Mv7d{ delta 73 zcmV-P0Ji_Bhb5_pC4hthgaU*Egam{Iga(8Mv