From b933596060a0a177a3112131b02fd425478d267c Mon Sep 17 00:00:00 2001 From: Alexander Popiak Date: Fri, 29 Oct 2021 12:23:08 +0200 Subject: [PATCH] adjust generated shell spec with production config values --- scripts/create_shell_spec.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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