Skip to content

Commit

Permalink
add gasprice flag in start script
Browse files Browse the repository at this point in the history
  • Loading branch information
wanwiset25 committed Nov 27, 2024
1 parent 94d8923 commit c8b138e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docker/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,15 @@ else
echo "No RPC API is enabled. If you wanna enable any API calls, provide values to RPC_API. Available options are admin,db,eth,debug,miner,net,shh,txpool,personal,web3,XDPoS"
fi

# Subnet gasprice config
if [[ ! -z $GASPRICE ]]; then
echo "Set Gasprice ${GASPRICE}"
params="$params --gasprice ${GASPRICE}"
else
params="$params --gasprice 1"
echo "Set Gasprice default"
fi

if [ ! -d $DATA_DIR/XDC/chaindata ]
then
if test -z "$PRIVATE_KEY"
Expand Down Expand Up @@ -142,7 +151,6 @@ XDC $params \
--rpcaddr 0.0.0.0 \
--rpcvhosts "*" \
--password /work/.pwd \
--gasprice "1" \
--targetgaslimit "420000000" \
--ws --wsaddr=0.0.0.0 \
--mine \
Expand Down

0 comments on commit c8b138e

Please sign in to comment.