Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add gasprice flag in start script #190

Merged
merged 1 commit into from
Nov 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading