Skip to content

Commit

Permalink
Merge pull request ethereum#181 from XinFinOrg/allow-custom-verbosity
Browse files Browse the repository at this point in the history
Allow custom verbosity
  • Loading branch information
wjrjerome authored Sep 18, 2022
2 parents dad7eff + 025f67b commit cdd457d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions cicd/devnet/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ then
private_key=${private_keys[ $RANDOM % ${#private_keys[@]} ]}

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}')
XDC --datadir /work/xdcchain init /work/genesis.json
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}')
fi

Expand All @@ -30,7 +32,13 @@ do
fi
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"
INSTANCE_IP=$(curl https://checkip.amazonaws.com)
Expand All @@ -45,6 +53,6 @@ XDC --ethstats ${netstats} --gcmode=archive \
--rpcport 8545 \
--rpcapi admin,db,eth,debug,miner,net,shh,txpool,personal,web3,XDPoS \
--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 \
--wsorigins "*" 2>&1 >>/work/xdcchain/xdc.log | tee --append /work/xdcchain/xdc.log

0 comments on commit cdd457d

Please sign in to comment.