Skip to content

Commit 556086f

Browse files
committed
Merge branch 'devnet-ready' into merge-devnet-to-devnet-ready
2 parents 711bf98 + 9da2947 commit 556086f

36 files changed

+51066
-51040
lines changed

.github/workflows/try-runtime.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ jobs:
4949
uses: "paritytech/[email protected]"
5050
with:
5151
runtime-package: "node-subtensor-runtime"
52-
node-uri: "wss://archive.chain.opentensor.ai:443"
52+
node-uri: "wss://archive.dev.opentensor.ai:443"
5353
checks: "all"
5454
extra-args: "--disable-spec-version-check --no-weight-warnings"

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ EXPOSE 30333 9933 9944
3838
FROM $BASE_IMAGE AS subtensor
3939

4040
# Copy all chainspec files
41-
COPY --from=builder /build/*.json /
41+
COPY --from=builder /build/chainspecs/*.json /
4242

4343
# Copy final binary
4444
COPY --from=builder /build/target/production/node-subtensor /usr/local/bin
File renamed without changes.

plain_spec_finney.json renamed to chainspecs/plain_spec_finney.json

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

plain_spec_testfinney.json renamed to chainspecs/plain_spec_testfinney.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,4 @@
7171
}
7272
}
7373
}
74-
}
74+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

node/src/chain_spec/finney.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,13 @@ 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
}
4748

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

64+
processed_balances.sort();
65+
6166
// Give front-ends necessary data to present to users
6267
let mut properties = sc_service::Properties::new();
6368
properties.insert("tokenSymbol".into(), "TAO".into());

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();

0 commit comments

Comments
 (0)