github.com/marconiprotocol/go-methereum-lite@v0.0.0-20190918214227-3cd8b06fcf99/build/deploy/peer_testnet.sh (about) 1 #!/bin/bash 2 3 source ../etc/meth/config.sh 4 5 if [ -z $BOOTNODE_ENODE_HASH ] || [ -z $BOOTNODE_IP ] || [ -z $BOOTNODE_PORT ]; then 6 echo "Misconfigured config.sh, please check bootnode settings" 7 fi 8 9 if [ -z $PEER_PORT ]; then 10 echo "Misconfigured config.sh, please check peer settings" 11 fi 12 13 # TODO: accept this as param, passed by mcli 14 ABSOLUTE_PEERDIR="/opt/marconi/etc/meth/datadir/" 15 16 ./gmeth \ 17 --networkid 179109 \ 18 --port $PEER_PORT \ 19 --rpc \ 20 --rpcapi="db,eth,net,web3,personal" \ 21 --rpcport $PEER_RPC_PORT \ 22 --datadir ${ABSOLUTE_PEERDIR} \ 23 --testnet \ 24 --syncmode "full"