We wan't to run multiple node on multiple devices. We use substrate-node-template
to do that. We build the project using cargo build --release
and follow this Add trusted node tutorial. We were able to generate chainSpec.json
and converted to chainSpecRaw.json
after modify aura
& grandpa
fields. We then add keys to the keystore and run first node:
./target/release/node-template \
--base-path /tmp/node01 \
--chain ./customSpecRaw.json \
--port 30333 \
--ws-port 9945 \
--rpc-port 9933 \
--telemetry-url "wss://telemetry.polkadot.io/submit/ 0" \
--validator \
--rpc-methods Unsafe \
--name MyNode01 \
--password-interactive
On second device send chainSpecRaw.json
file then add keys to keystore of second node and run second node:
ip4
of device where first node running: 27.34.100.91
./target/release/node-template \
--base-path /tmp/node02 \
--chain ./customSpecRaw.json \
--port 30334 \
--ws-port 9946 \
--rpc-port 9934 \
--telemetry-url "wss://telemetry.polkadot.io/submit/ 0" \
--validator \
--rpc-methods Unsafe \
--name MyNode02 \
--bootnodes /ip4/27.34.100.91/tcp/30333/p2p/12D3KooWLk8ER6sbMAZa8uzf6YmyMo8FvpCiMgrFW4NfReez5um4 \
--password-interactive
No two node peers with each other. Can you please helps us why we are having this issue?