Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit b933596

Browse files
committed
adjust generated shell spec with production config values
1 parent 54f59bc commit b933596

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

scripts/create_shell_spec.sh

+8-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,14 @@ $binary build-spec --chain shell > shell-spec-plain.json
1818
# convert runtime to hex
1919
cat $rt_path | od -A n -v -t x1 | tr -d ' \n' > shell-hex.txt
2020

21-
# replace the runtime in the spec with the given runtime
22-
cat shell-spec-plain.json | jq --rawfile code shell-hex.txt '.genesis.runtime.system.code = ("0x" + $code)' > edited-shell-plain.json
21+
# replace the runtime in the spec with the given runtime and set some values to production
22+
cat shell-spec-plain.json | jq --rawfile code shell-hex.txt '.genesis.runtime.system.code = ("0x" + $code)' \
23+
| jq '.name = "Shell"' \
24+
| jq '.id = "shell"' \
25+
| jq '.chainType = "Live"' \
26+
| jq '.bootNodes = ["/ip4/34.65.213.18/tcp/30334/p2p/12D3KooWF63ZxKtZMYs5247WQA8fcTiGJb2osXykc31cmjwNLwem", "/ip4/34.65.104.62/tcp/30334/p2p/12D3KooWBJTqpLCKVBEbH4jvn7DvxDhSnmFFM7e8rohQqTGfmLSK", "/ip4/34.65.35.228/tcp/30334/p2p/12D3KooWF5jLarW11PF1yVncAKnk9rNGEa9WiZ7hMkEpT4HPpkLp", "/ip4/34.65.251.121/tcp/30334/p2p/12D3KooWDj3YNpKp2hW8g5zasxk54PtxHS1fN4AZUPu3hUwitPnh"]' \
27+
| jq '.relay_chain = "polkadot"' \
28+
> edited-shell-plain.json
2329

2430
# build a raw spec
2531
$binary build-spec --chain edited-shell-plain.json --raw > shell-spec-raw.json

0 commit comments

Comments
 (0)