Skip to content

Commit

Permalink
merge devnet ready
Browse files Browse the repository at this point in the history
  • Loading branch information
open-junius committed Nov 27, 2024
2 parents fb17cbf + ddc3804 commit 5251506
Show file tree
Hide file tree
Showing 3 changed files with 154,282 additions and 49,880 deletions.
5 changes: 5 additions & 0 deletions node/src/chain_spec/finney.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,13 @@ pub fn finney_mainnet_config() -> Result<ChainSpec, String> {

processed_hotkeys.push((hotkey_account, (*amount, *uid)));
}
processed_hotkeys.sort();

processed_stakes.push((coldkey_account, processed_hotkeys));
}

processed_stakes.sort();

let mut balances_issuance: u64 = 0;
let mut processed_balances: Vec<(sp_runtime::AccountId32, u64)> = Vec::new();
for (key_str, amount) in old_state.balances.iter() {
Expand All @@ -58,6 +61,8 @@ pub fn finney_mainnet_config() -> Result<ChainSpec, String> {
.ok_or("Balances issuance overflowed".to_string())?;
}

processed_balances.sort();

// Give front-ends necessary data to present to users
let mut properties = sc_service::Properties::new();
properties.insert("tokenSymbol".into(), "TAO".into());
Expand Down
1 change: 1 addition & 0 deletions node/src/chain_spec/testnet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ pub fn finney_testnet_config() -> Result<ChainSpec, String> {
.checked_add(*amount)
.ok_or("Balances issuance overflowed".to_string())?;
}
processed_balances.sort();

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

0 comments on commit 5251506

Please sign in to comment.