diff --git a/.env-sample b/.env-sample index afddb231..c66d28f6 100644 --- a/.env-sample +++ b/.env-sample @@ -135,6 +135,8 @@ MAX_SWAP_FEE = 0.1 MAX_SWAP_POINT = 0 # Min amount allowed for Swap MIN_SWAP_AMOUNT = 10000 +# Spend Unconfirmed UTXOS (more capital efficient, more risky) +SPEND_UNCONFIRMED = False # Reward tip. Reward for every finished trade in the referral program (Satoshis) REWARD_TIP = 100 diff --git a/api/lightning/node.py b/api/lightning/node.py index 04bff894..98a98ff6 100644 --- a/api/lightning/node.py +++ b/api/lightning/node.py @@ -140,7 +140,7 @@ class LNNode: amount=int(onchainpayment.sent_satoshis), sat_per_vbyte=int(onchainpayment.mining_fee_rate), label=str("Payout order #" + str(onchainpayment.order_paid_TX.id)), - spend_unconfirmed=True, + spend_unconfirmed=config("SPEND_UNCONFIRMED", default=False, cast=bool), ) # Cheap security measure to ensure there has been some non-deterministic time between request and DB check