mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 19:00:46 +00:00
Merge pull request #181 from XinFinOrg/allow-custom-verbosity
Allow custom verbosity
This commit is contained in:
commit
cdd457df6e
1 changed files with 10 additions and 2 deletions
|
|
@ -12,9 +12,11 @@ then
|
||||||
private_key=${private_keys[ $RANDOM % ${#private_keys[@]} ]}
|
private_key=${private_keys[ $RANDOM % ${#private_keys[@]} ]}
|
||||||
|
|
||||||
echo "${private_key}" >> /tmp/key
|
echo "${private_key}" >> /tmp/key
|
||||||
|
echo "Creating a new wallet"
|
||||||
wallet=$(XDC account import --password .pwd --datadir /work/xdcchain /tmp/key | awk -v FS="({|})" '{print $2}')
|
wallet=$(XDC account import --password .pwd --datadir /work/xdcchain /tmp/key | awk -v FS="({|})" '{print $2}')
|
||||||
XDC --datadir /work/xdcchain init /work/genesis.json
|
XDC --datadir /work/xdcchain init /work/genesis.json
|
||||||
else
|
else
|
||||||
|
echo "Wallet already exist, re-use the same one"
|
||||||
wallet=$(XDC account list --datadir /work/xdcchain | head -n 1 | awk -v FS="({|})" '{print $2}')
|
wallet=$(XDC account list --datadir /work/xdcchain | head -n 1 | awk -v FS="({|})" '{print $2}')
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -30,7 +32,13 @@ do
|
||||||
fi
|
fi
|
||||||
done < "$input"
|
done < "$input"
|
||||||
|
|
||||||
|
log_level=3
|
||||||
|
if test -z "$LOG_LEVEL"
|
||||||
|
then
|
||||||
|
echo "Log level not set, default to verbosity of 3"
|
||||||
|
else
|
||||||
|
log_level=$LOG_LEVEL
|
||||||
|
fi
|
||||||
|
|
||||||
netstats="aws_${wallet}:xinfin_xdpos_hybrid_network_stats@devnetstats.apothem.network:2000"
|
netstats="aws_${wallet}:xinfin_xdpos_hybrid_network_stats@devnetstats.apothem.network:2000"
|
||||||
INSTANCE_IP=$(curl https://checkip.amazonaws.com)
|
INSTANCE_IP=$(curl https://checkip.amazonaws.com)
|
||||||
|
|
@ -45,6 +53,6 @@ XDC --ethstats ${netstats} --gcmode=archive \
|
||||||
--rpcport 8545 \
|
--rpcport 8545 \
|
||||||
--rpcapi admin,db,eth,debug,miner,net,shh,txpool,personal,web3,XDPoS \
|
--rpcapi admin,db,eth,debug,miner,net,shh,txpool,personal,web3,XDPoS \
|
||||||
--rpcvhosts "*" --unlock "${wallet}" --password /work/.pwd --mine \
|
--rpcvhosts "*" --unlock "${wallet}" --password /work/.pwd --mine \
|
||||||
--gasprice "1" --targetgaslimit "420000000" --verbosity 3 \
|
--gasprice "1" --targetgaslimit "420000000" --verbosity ${log_level} \
|
||||||
--ws --wsaddr=0.0.0.0 --wsport 8555 \
|
--ws --wsaddr=0.0.0.0 --wsport 8555 \
|
||||||
--wsorigins "*" 2>&1 >>/work/xdcchain/xdc.log | tee --append /work/xdcchain/xdc.log
|
--wsorigins "*" 2>&1 >>/work/xdcchain/xdc.log | tee --append /work/xdcchain/xdc.log
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue