diff --git a/scripts/create_shell_spec.sh b/scripts/create_shell_spec.sh index 1fbd5893f8..a6b49d4e49 100755 --- a/scripts/create_shell_spec.sh +++ b/scripts/create_shell_spec.sh @@ -18,8 +18,14 @@ $binary build-spec --chain shell > shell-spec-plain.json # convert runtime to hex cat $rt_path | od -A n -v -t x1 | tr -d ' \n' > shell-hex.txt -# replace the runtime in the spec with the given runtime -cat shell-spec-plain.json | jq --rawfile code shell-hex.txt '.genesis.runtime.system.code = ("0x" + $code)' > edited-shell-plain.json +# replace the runtime in the spec with the given runtime and set some values to production +cat shell-spec-plain.json | jq --rawfile code shell-hex.txt '.genesis.runtime.system.code = ("0x" + $code)' \ + | jq '.name = "Shell"' \ + | jq '.id = "shell"' \ + | jq '.chainType = "Live"' \ + | 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"]' \ + | jq '.relay_chain = "polkadot"' \ + > edited-shell-plain.json # build a raw spec $binary build-spec --chain edited-shell-plain.json --raw > shell-spec-raw.json