Skip to content

Instantly share code, notes, and snippets.

@jacqueswww
Created October 2, 2019 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jacqueswww/2f4dda67fc804f8360144f14b82bdd6a to your computer and use it in GitHub Desktop.
Save jacqueswww/2f4dda67fc804f8360144f14b82bdd6a to your computer and use it in GitHub Desktop.
Final ewasm testnet run_geth
#!/bin/bash
set -ex
LIB_HERA_PATH="./hera/build/src/libhera.so"
TMP_PATH="./ewasm-node/4201/"
if [[ ! -d $TMP_PATH ]]; then
echo "Running init"
./build/bin/geth --datadir $TMP_PATH init ewasm-testnet-geth-config.json
fi
./build/bin/geth --vm.ewasm="$LIB_HERA_PATH,metering=true,fallback=true" \
--datadir $TMP_PATH \
--etherbase 0xb29Bc34840F158C1F3d535E8f4a6dC4AADa574b4 \
--rpc --rpcapi "web3,net,eth,debug,personal" --rpcvhosts="*" --rpcaddr "0.0.0.0" --rpccorsdomain "*" \
--bootnodes "enode://53458e6bf0353f3378e115034cf6c6039b9faed52548da9030b37b4672de4a8fd09f869c48d16f9f10937e7398ae0dbe8b9d271408da7a0cf47f42a09e662827@23.101.78.254:30303" \
--vmodule "miner=12,rpc=12" \
--networkid 66
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment