Last active
March 10, 2021 19:02
-
-
Save hskang9/3f888a857c15a9c116308181f8e0001c to your computer and use it in GitHub Desktop.
set substrate node chainspec.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install from git | |
git clone https://github.com/hskang9/did-project.git # or your substrate git repository | |
cd did-project | |
cargo build --release | |
cd ~/ | |
# Kill all storage | |
rm -rf /tmp/validator | |
rm -rf nohup.validator.out | |
/root/did-project/target/release/node-template build-spec --chain=local > customSpec.json | |
/root/did-project/target/release/node-template build-spec --chain customSpec.json --raw > customSpecRaw.json | |
nohup /root/did-project/target/release/node-template \ | |
# database path | |
--base-path /tmp/validator \ | |
# chain specification | |
--chain ./customSpecRaw.json \ | |
# add this if the node needs to listen other than localhost | |
--ws-external --rpc-external \ | |
# node p2p port | |
--port 30333 \ | |
# CORS host. set it all to avoid Nginx configuration error. | |
--rpc-cors all \ | |
# websocket port | |
--ws-port 9944 \ | |
# RPC http port | |
--rpc-port 9933 \ | |
# telemetry to monitor nodes | |
--telemetry-url ws://telemetry.polkadot.io:1024 \ | |
# nohup log | |
&> nohup.validator.out& | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment