mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-13 19:06:26 +00:00
Add envvar for spend_unconfirmed
This commit is contained in:
parent
b6129bb46f
commit
ef55207812
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user