Skip to content

Commit

Permalink
Enable setting spam amount for wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
cmmarslender committed May 31, 2024
1 parent c9b7e30 commit ff42d6b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,13 @@ if [[ -n ${trusted_cidrs} ]]; then
' "$CHIA_ROOT/config/config.yaml"
fi

if [[ -n ${xch_spam_amount} ]]; then
echo "Setting xch spam amount in config.yaml to value: $xch_spam_amount"
yq -i '
.wallet.xch_spam_amount = env(xch_spam_amount)
' "$CHIA_ROOT/config/config.yaml"
fi

if [[ ${log_to_file} != 'true' ]]; then
sed -i 's/log_stdout: false/log_stdout: true/g' "$CHIA_ROOT/config/config.yaml"
else
Expand Down

0 comments on commit ff42d6b

Please sign in to comment.