Skip to content

Commit ec502bd

Browse files
committed
sort the account in spec file
1 parent d53297d commit ec502bd

File tree

4 files changed

+50858
-50854
lines changed

4 files changed

+50858
-50854
lines changed

node/src/chain_spec/finney.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,11 @@ pub fn finney_mainnet_config() -> Result<ChainSpec, String> {
4141

4242
processed_hotkeys.push((hotkey_account, (*amount, *uid)));
4343
}
44+
processed_hotkeys.sort();
4445

4546
processed_stakes.push((coldkey_account, processed_hotkeys));
4647
}
48+
processed_stakes.sort();
4749

4850
let mut balances_issuance: u64 = 0;
4951
let mut processed_balances: Vec<(sp_runtime::AccountId32, u64)> = Vec::new();
@@ -57,6 +59,7 @@ pub fn finney_mainnet_config() -> Result<ChainSpec, String> {
5759
.checked_add(*amount)
5860
.ok_or("Balances issuance overflowed".to_string())?;
5961
}
62+
processed_balances.sort();
6063

6164
// Give front-ends necessary data to present to users
6265
let mut properties = sc_service::Properties::new();

node/src/chain_spec/testnet.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ pub fn finney_testnet_config() -> Result<ChainSpec, String> {
3434
.checked_add(*amount)
3535
.ok_or("Balances issuance overflowed".to_string())?;
3636
}
37+
processed_balances.sort();
3738

3839
// Give front-ends necessary data to present to users
3940
let mut properties = sc_service::Properties::new();

plain_spec_finney.json

Lines changed: 50853 additions & 50853 deletions
Large diffs are not rendered by default.

plain_spec_testfinney.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)