Add envvar for spend_unconfirmed

This commit is contained in:
Reckless_Satoshi 2023-03-10 04:52:33 -08:00
parent b6129bb46f
commit ef55207812
No known key found for this signature in database
GPG Key ID: 9C4585B561315571
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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