From d5f34d4b8aed69bfdfaba8be7be307949d0d372e Mon Sep 17 00:00:00 2001 From: icodezjb Date: Tue, 27 Dec 2022 18:31:35 +0800 Subject: [PATCH] Add psc bootnodes --- node/src/res/psc-raw.json | 5 ++++- scripts/local-test.txt | 14 ++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 scripts/local-test.txt diff --git a/node/src/res/psc-raw.json b/node/src/res/psc-raw.json index abf5990..f9d5d42 100644 --- a/node/src/res/psc-raw.json +++ b/node/src/res/psc-raw.json @@ -2,7 +2,10 @@ "name": "Polkadot Smart Chain", "id": "psc", "chainType": "Live", - "bootNodes": [], + "bootNodes": [ + "/ip4/47.114.74.52/tcp/30335/p2p/12D3KooWE7iZDHpJsRA93uhzJCD4LZQBSEigFGMDmAtmbJHpn7nZ", + "/ip4/47.99.179.60/tcp/30335/p2p/12D3KooWMSDmZEAnhND4BgE2MdjKhLQNXxNBeM6fUjeVNiYjbJm8" + ], "telemetryEndpoints": [ [ "/dns/telemetry.chainx.org/tcp/443/x-parity-wss/%2Fsubmit%2F", diff --git a/scripts/local-test.txt b/scripts/local-test.txt new file mode 100644 index 0000000..a880e19 --- /dev/null +++ b/scripts/local-test.txt @@ -0,0 +1,14 @@ +polkadot build-spec --chain rococo-local --disable-default-bootnode > rococo-local.json +# polkadot build-spec --chain rococo-local.json --disable-default-bootnode --raw > rococo-local-raw.json +psc build-spec --disable-default-bootnode --chain=genesis > 2053.json +# polkadot -> rococo-local +# psc build-spec --disable-default-bootnode --chain=./2053.json --raw > 2053-raw.json + +psc export-genesis-state --chain 2053-raw.json > genesis-state +psc export-genesis-wasm --chain 2053-raw.json > genesis-wasm + +polkadot --chain rococo-local-raw.json -d data-alice --name alice --alice --rpc-cors all --unsafe-rpc-external --rpc-methods unsafe --unsafe-ws-external --validator --rpc-port 44713 --ws-port 46757 --port 38013 + +polkadot --chain rococo-local-raw.json -d data-bob --name bob --bob --rpc-cors all --unsafe-rpc-external --rpc-methods unsafe --unsafe-ws-external --validator --rpc-port 44714 --ws-port 46758 --port 38014 + +psc --chain 2053-raw.json -d data-2053 --name psc01 --rpc-cors all --unsafe-rpc-external --rpc-methods unsafe --unsafe-ws-external --collator --keystore-path keystore/keystore --rpc-port 8545 --ws-port 9977 -lxcm=trace,evm=trace -- -d data-relay --chain rococo-local-raw.json --execution wasm --ws-port 9944 --rpc-port 43361 --port 44559