I want to connect 2 nodes via custom chain specification via Internet IP public
I. STEP 1: Create Aura and grandpa
--- NODE 01----
- Create Aura-01:
Secret phrase: glory icon taste syrup such guard correct occur coyote frequent thing water
Network ID: substrate
Secret seed: 0x070c94ef16c1a629ddf6b9d1416fa2665e7d5f01bd2113e61a78c53f6e5cda87
Public key (hex): 0x0adf0e0405dbc259257c2eb6700d00849a94edf496872dbea5547d236a9aff00
Account ID: 0x0adf0e0405dbc259257c2eb6700d00849a94edf496872dbea5547d236a9aff00
Public key (SS58): 5CJxbavev61VDuLbyMErtE7PvjA8osHhDkv3gKttHsSZFMdJ
SS58 Address: 5CJxbavev61VDuLbyMErtE7PvjA8osHhDkv3gKttHsSZFMdJ
- Create Grandpa-01
Secret phrase: glory icon taste syrup such guard correct occur coyote frequent thing water
Network ID: substrate
Secret seed: 0x070c94ef16c1a629ddf6b9d1416fa2665e7d5f01bd2113e61a78c53f6e5cda87
Public key (hex): 0x8e34ea1bd11bd532427f82daae6aa3a855fdc948136753905a74796a5b7146c8
Account ID: 0x8e34ea1bd11bd532427f82daae6aa3a855fdc948136753905a74796a5b7146c8
Public key (SS58): 5FHANk2EkM6sTeGnkZ2HaRCj356NVWg4DSJag4gsz6Jupazt
SS58 Address: 5FHANk2EkM6sTeGnkZ2HaRCj356NVWg4DSJag4gsz6Jupazt
---NODE 02-------------------
- Create Aura-02:
Secret phrase: praise scout author learn bounce funny pulp caution young collect whip limb
Network ID: substrate
Secret seed: 0x16df58dcb530ece94270a6154c7d8ad1b3d4aebe69ce55ed2cfe620f6e357a1d
Public key (hex): 0x16134c09a7818a590ebc5f9b336c22fe3d23e88e6449edbb996116449430be01
Account ID: 0x16134c09a7818a590ebc5f9b336c22fe3d23e88e6449edbb996116449430be01
Public key (SS58): 5CZeeFRsRSUweVkqZR3hDTN9khk3U3oa4rjaFg2S96WPpRhd
SS58 Address: 5CZeeFRsRSUweVkqZR3hDTN9khk3U3oa4rjaFg2S96WPpRhd
- Create Grandpa-02:
Secret phrase: praise scout author learn bounce funny pulp caution young collect whip limb
Network ID: substrate
Secret seed: 0x16df58dcb530ece94270a6154c7d8ad1b3d4aebe69ce55ed2cfe620f6e357a1d
Public key (hex): 0x3612c18b4ae0e6b7e5b5bd79b5353cc20af70ba1302fe638884114ee0b9a7452
Account ID: 0x3612c18b4ae0e6b7e5b5bd79b5353cc20af70ba1302fe638884114ee0b9a7452
Public key (SS58): 5DHc1oW2bBAfu46v5mxNu97iWohvEvsdT2TyaBirXuQzC18F
SS58 Address: 5DHc1oW2bBAfu46v5mxNu97iWohvEvsdT2TyaBirXuQzC18F
II. STEP 2: Node 01 Export the local chain specification to a file named customSpec.json
./target/release/node-template build-spec --disable-default-bootnode --chain local > customSpec.json
III. STEP 3: Node-01 Add Aura and Grandpa both of node into customSpec.json
IV. Convert customSpec to RAW
./target/release/node-template build-spec --chain=customSpec.json --raw --disable-default-bootnode > customSpecRaw.json
V.Share customSpecRAW file to node-02
VI.NODE-01 Run:
./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
VII.NODE-01 Add key to Keystore with password 123456
./target/release/node-template key insert --base-path /tmp/node01 \
--chain customSpecRaw.json \
--scheme Sr25519 \
--suri '0x070c94ef16c1a629ddf6b9d1416fa2665e7d5f01bd2113e61a78c53f6e5cda87' \
--password-interactive \
--key-type aura
./target/release/node-template key insert --base-path /tmp/node01 \
--chain customSpecRaw.json \
--scheme Ed25519 \
--suri '0x070c94ef16c1a629ddf6b9d1416fa2665e7d5f01bd2113e61a78c53f6e5cda87' \
--password-interactive \
--key-type gran
VIII. NODE-01 verify key
ls /tmp/node01/chains/local_testnet/keystore
IX.NODE-02 run:
./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/171.245.164.166/tcp/30333/p2p/12D3KooWBNTdqMcbcE3gqNWtvKWZWsFnHaehtMtbiq3kVeUk3JSE \
--password-interactive
X.NODE-02 Add key to keystore with password 123456
./target/release/node-template key insert --base-path /tmp/node02 \
--chain customSpecRaw.json \
--scheme Sr25519 \
--suri '0x16df58dcb530ece94270a6154c7d8ad1b3d4aebe69ce55ed2cfe620f6e357a1d' \
--password-interactive \
--key-type aura
./target/release/node-template key insert --base-path /tmp/node02 \
--chain customSpecRaw.json \
--scheme Ed25519 \
--suri '0x16df58dcb530ece94270a6154c7d8ad1b3d4aebe69ce55ed2cfe620f6e357a1d' \
--password-interactive \
--key-type gran
XI. NODE-02 verify key store
ls /tmp/node02/chains/local_testnet/keystore
Result is both nodes can peer without producing and finalizing blocks.
Also same problem with 3 nodes. Can anyone help me this issue? Thank you.