Skip to content

Commit a38b4e9

Browse files
committed
Merge branch 'devnet-ready' into clean-up-subnet-identities-storage
2 parents 8713d68 + 9580005 commit a38b4e9

File tree

4 files changed

+26
-28
lines changed

4 files changed

+26
-28
lines changed

evm-tests/run-ci.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if [ "$i" -eq 1000 ]; then
1919
exit 1
2020
fi
2121

22-
sleep 5
22+
sleep 10
2323

2424
if ! nc -z localhost 9944; then
2525
echo "node subtensor exit, port not available"

node/src/chain_spec/localnet.rs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ pub fn localnet_config(single_authority: bool) -> Result<ChainSpec, String> {
3434
// aura | grandpa
3535
if single_authority {
3636
// single authority allows you to run the network using a single node
37-
vec![authority_keys_from_seed("Alice")]
37+
vec![authority_keys_from_seed("One")]
3838
} else {
3939
vec![
40-
authority_keys_from_seed("Alice"),
41-
authority_keys_from_seed("Bob"),
40+
authority_keys_from_seed("One"),
41+
authority_keys_from_seed("Two"),
4242
]
4343
},
4444
// Pre-funded accounts
@@ -77,6 +77,14 @@ fn localnet_genesis(
7777
get_account_id_from_seed::<sr25519::Public>("Ferdie"),
7878
2000000000000u128,
7979
),
80+
(
81+
get_account_id_from_seed::<sr25519::Public>("One"),
82+
2000000000000u128,
83+
),
84+
(
85+
get_account_id_from_seed::<sr25519::Public>("Two"),
86+
2000000000000u128,
87+
),
8088
// ETH
8189
(
8290
// Alith - 0xf24FF3a9CF04c71Dbc94D0b566f7A27B94566cac

runtime/src/lib.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1614,22 +1614,12 @@ pub type TransactionExtensions = (
16141614
frame_metadata_hash_extension::CheckMetadataHash<Runtime>,
16151615
);
16161616

1617-
parameter_types! {
1618-
pub const TriumviratePalletStr: &'static str = "Triumvirate";
1619-
pub const TriumvirateMembersPalletStr: &'static str = "TriumvirateMembers";
1620-
pub const SenateMembersPalletStr: &'static str = "SenateMembers";
1621-
}
1622-
16231617
type Migrations = (
16241618
// Leave this migration in the runtime, so every runtime upgrade tiny rounding errors (fractions of fractions
16251619
// of a cent) are cleaned up. These tiny rounding errors occur due to floating point coversion.
16261620
pallet_subtensor::migrations::migrate_init_total_issuance::initialise_total_issuance::Migration<
16271621
Runtime,
16281622
>,
1629-
// Remove storage from removed governance pallets
1630-
frame_support::migrations::RemovePallet<TriumviratePalletStr, RocksDbWeight>,
1631-
frame_support::migrations::RemovePallet<TriumvirateMembersPalletStr, RocksDbWeight>,
1632-
frame_support::migrations::RemovePallet<SenateMembersPalletStr, RocksDbWeight>,
16331623
);
16341624

16351625
// Unchecked extrinsic type as expected by this runtime.

scripts/localnet.sh

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -87,26 +87,26 @@ echo "*** Building chainspec..."
8787
echo "*** Chainspec built and output to file"
8888

8989
# Generate node keys
90-
"$BUILD_DIR/release/node-subtensor" key generate-node-key --chain="$FULL_PATH" --base-path /tmp/alice
91-
"$BUILD_DIR/release/node-subtensor" key generate-node-key --chain="$FULL_PATH" --base-path /tmp/bob
90+
"$BUILD_DIR/release/node-subtensor" key generate-node-key --chain="$FULL_PATH" --base-path /tmp/one
91+
"$BUILD_DIR/release/node-subtensor" key generate-node-key --chain="$FULL_PATH" --base-path /tmp/two
9292

9393
if [ $NO_PURGE -eq 1 ]; then
9494
echo "*** Purging previous state skipped..."
9595
else
9696
echo "*** Purging previous state..."
97-
"$BUILD_DIR/release/node-subtensor" purge-chain -y --base-path /tmp/bob --chain="$FULL_PATH" >/dev/null 2>&1
98-
"$BUILD_DIR/release/node-subtensor" purge-chain -y --base-path /tmp/alice --chain="$FULL_PATH" >/dev/null 2>&1
97+
"$BUILD_DIR/release/node-subtensor" purge-chain -y --base-path /tmp/two --chain="$FULL_PATH" >/dev/null 2>&1
98+
"$BUILD_DIR/release/node-subtensor" purge-chain -y --base-path /tmp/one --chain="$FULL_PATH" >/dev/null 2>&1
9999
echo "*** Previous chainstate purged"
100100
fi
101101

102102
if [ $BUILD_ONLY -eq 0 ]; then
103103
echo "*** Starting localnet nodes..."
104104

105-
alice_start=(
105+
one_start=(
106106
"$BUILD_DIR/release/node-subtensor"
107-
--base-path /tmp/alice
107+
--base-path /tmp/one
108108
--chain="$FULL_PATH"
109-
--alice
109+
--one
110110
--port 30334
111111
--rpc-port 9944
112112
--validator
@@ -116,11 +116,11 @@ if [ $BUILD_ONLY -eq 0 ]; then
116116
--unsafe-force-node-key-generation
117117
)
118118

119-
bob_start=(
119+
two_start=(
120120
"$BUILD_DIR/release/node-subtensor"
121-
--base-path /tmp/bob
121+
--base-path /tmp/two
122122
--chain="$FULL_PATH"
123-
--bob
123+
--two
124124
--port 30335
125125
--rpc-port 9945
126126
--validator
@@ -132,15 +132,15 @@ if [ $BUILD_ONLY -eq 0 ]; then
132132

133133
# Provide RUN_IN_DOCKER local environment variable if run script in the docker image
134134
if [ "${RUN_IN_DOCKER}" == "1" ]; then
135-
alice_start+=(--unsafe-rpc-external)
136-
bob_start+=(--unsafe-rpc-external)
135+
one_start+=(--unsafe-rpc-external)
136+
two_start+=(--unsafe-rpc-external)
137137
fi
138138

139139
trap 'pkill -P $$' EXIT SIGINT SIGTERM
140140

141141
(
142-
("${alice_start[@]}" 2>&1) &
143-
("${bob_start[@]}" 2>&1)
142+
("${one_start[@]}" 2>&1) &
143+
("${two_start[@]}" 2>&1)
144144
wait
145145
)
146146
fi

0 commit comments

Comments
 (0)