Skip to content

Commit

Permalink
Bump version to pass deploy check. Use --unsafe-force-node-key-genera…
Browse files Browse the repository at this point in the history
…tion instead of explicit key generation, add rpc-cors to Bob for e2e tests.
  • Loading branch information
gztensor committed Sep 24, 2024
1 parent 00f6a16 commit 85a506a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
// `spec_version`, and `authoring_version` are the same between Wasm and native.
// This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use
// the compatible custom types.
spec_version: 196,
spec_version: 197,
impl_version: 1,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down
8 changes: 3 additions & 5 deletions scripts/localnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ echo "*** Building chainspec..."
"$BASE_DIR/target/release/node-subtensor" build-spec --disable-default-bootnode --raw --chain $CHAIN >$FULL_PATH
echo "*** Chainspec built and output to file"

# generate node keys
$BASE_DIR/target/release/node-subtensor key generate-node-key --chain="$FULL_PATH" --base-path /tmp/alice
$BASE_DIR/target/release/node-subtensor key generate-node-key --chain="$FULL_PATH" --base-path /tmp/bob

if [ $NO_PURGE -eq 1 ]; then
echo "*** Purging previous state skipped..."
else
Expand All @@ -77,11 +73,11 @@ alice_start=(
--alice
--port 30334
--rpc-port 9946
--rpc-external
--validator
--rpc-cors=all
--allow-private-ipv4
--discover-local
--unsafe-force-node-key-generation
)

bob_start=(
Expand All @@ -92,8 +88,10 @@ bob_start=(
--port 30335
--rpc-port 9945
--validator
--rpc-cors=all
--allow-private-ipv4
--discover-local
--unsafe-force-node-key-generation
)

trap 'pkill -P $$' EXIT SIGINT SIGTERM
Expand Down

0 comments on commit 85a506a

Please sign in to comment.