ghost-node/scripts/run-local-network.sh
Uncle Stretch 66719626bb
inital commit, which is clearly not initial
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
2024-10-03 15:38:52 +03:00

17 lines
359 B
Bash
Executable File

#!/usr/bin/env bash
OFFSET="$2"
PORT=$((30333+OFFSET))
RPC_PORT=$((9933+OFFSET))
KEY=$((OFFSET+1))
NODE_KEY="000000000000000000000000000000000000000000000000000000000000000${KEY}"
./target/release/ghost \
--chain "casper-local" \
--tmp \
--port=${PORT} \
--rpc-port=${RPC_PORT} \
--rpc-cors all \
--node-key=${NODE_KEY} \
--"$1"