Skip to content

Instantly share code, notes, and snippets.

@hskang9
Last active March 10, 2021 19:01
Show Gist options
  • Save hskang9/9cb2921f9709404c988bf09a62399dcb to your computer and use it in GitHub Desktop.
Save hskang9/9cb2921f9709404c988bf09a62399dcb to your computer and use it in GitHub Desktop.
Set up external bob for the testnet
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env
curl https://getsubstrate.io -sSf | bash -s -- --fast
# Update Rust
rustup update nightly
rustup update stable
# Add Wasm target
rustup target add wasm32-unknown-unknown --toolchain nightly
# Install `wasm-gc` to slim Wasm binaries
cargo +nightly install --git https://github.com/alexcrichton/wasm-gc --force
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/bob
rm -rf nohup.bob.out
nohup /root/did-project/target/release/node-template \
--base-path /tmp/bob \
--chain=local \
--name test2 \
--port 30334 \
--ws-port 9945 \
--rpc-port 9934 \
--telemetry-url ws://telemetry.polkadot.io:1024 \
--validator \
--bootnodes /ip4/206.189.164.110/tcp/30333/p2p/QmYmJqnJqQYcuGwJNTM3Tn1Kf4TofpcNyYGvAr7Z9Q3VgS &> nohup.bob.out&
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment