Skip to content

Commit ee5f9fc

Browse files
committed
fix lcoalnet testing
1 parent f08b692 commit ee5f9fc

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

node/src/chain_spec/localnet.rs

Lines changed: 3 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("Charlie")]
3838
} else {
3939
vec![
40-
authority_keys_from_seed("Alice"),
41-
authority_keys_from_seed("Bob"),
40+
authority_keys_from_seed("Charlie"),
41+
authority_keys_from_seed("Dave"),
4242
]
4343
},
4444
// Pre-funded accounts

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/charlie
91+
"$BUILD_DIR/release/node-subtensor" key generate-node-key --chain="$FULL_PATH" --base-path /tmp/dave
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/dave --chain="$FULL_PATH" >/dev/null 2>&1
98+
"$BUILD_DIR/release/node-subtensor" purge-chain -y --base-path /tmp/charlie --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+
charlie_start=(
106106
"$BUILD_DIR/release/node-subtensor"
107-
--base-path /tmp/alice
107+
--base-path /tmp/charlie
108108
--chain="$FULL_PATH"
109-
--alice
109+
--charlie
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+
dave_start=(
120120
"$BUILD_DIR/release/node-subtensor"
121-
--base-path /tmp/bob
121+
--base-path /tmp/dave
122122
--chain="$FULL_PATH"
123-
--bob
123+
--dave
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+
charlie_start+=(--unsafe-rpc-external)
136+
dave_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+
("${charlie_start[@]}" 2>&1) &
143+
("${dave_start[@]}" 2>&1)
144144
wait
145145
)
146146
fi

0 commit comments

Comments
 (0)