Skip to content

Commit 85a506a

Browse files
committed
Bump version to pass deploy check. Use --unsafe-force-node-key-generation instead of explicit key generation, add rpc-cors to Bob for e2e tests.
1 parent 00f6a16 commit 85a506a

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

runtime/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
146146
// `spec_version`, and `authoring_version` are the same between Wasm and native.
147147
// This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use
148148
// the compatible custom types.
149-
spec_version: 196,
149+
spec_version: 197,
150150
impl_version: 1,
151151
apis: RUNTIME_API_VERSIONS,
152152
transaction_version: 1,

scripts/localnet.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,6 @@ echo "*** Building chainspec..."
5656
"$BASE_DIR/target/release/node-subtensor" build-spec --disable-default-bootnode --raw --chain $CHAIN >$FULL_PATH
5757
echo "*** Chainspec built and output to file"
5858

59-
# generate node keys
60-
$BASE_DIR/target/release/node-subtensor key generate-node-key --chain="$FULL_PATH" --base-path /tmp/alice
61-
$BASE_DIR/target/release/node-subtensor key generate-node-key --chain="$FULL_PATH" --base-path /tmp/bob
62-
6359
if [ $NO_PURGE -eq 1 ]; then
6460
echo "*** Purging previous state skipped..."
6561
else
@@ -77,11 +73,11 @@ alice_start=(
7773
--alice
7874
--port 30334
7975
--rpc-port 9946
80-
--rpc-external
8176
--validator
8277
--rpc-cors=all
8378
--allow-private-ipv4
8479
--discover-local
80+
--unsafe-force-node-key-generation
8581
)
8682

8783
bob_start=(
@@ -92,8 +88,10 @@ bob_start=(
9288
--port 30335
9389
--rpc-port 9945
9490
--validator
91+
--rpc-cors=all
9592
--allow-private-ipv4
9693
--discover-local
94+
--unsafe-force-node-key-generation
9795
)
9896

9997
trap 'pkill -P $$' EXIT SIGINT SIGTERM

0 commit comments

Comments
 (0)