mirror of
https://github.com/RoboSats/robosats.git
synced 2025-01-18 12:11:35 +00:00
Add permissioned payouts mode debugging envvar
This commit is contained in:
parent
8c81bed013
commit
b9aaf9f1bc
@ -117,6 +117,7 @@ MIN_FLAT_ROUTING_FEE_LIMIT_REWARD = 2
|
||||
# Routing timeouts
|
||||
REWARDS_TIMEOUT_SECONDS = 30
|
||||
PAYOUT_TIMEOUT_SECONDS = 90
|
||||
DEBUG_PERMISSIONED_PAYOUTS = False
|
||||
|
||||
# REVERSE SUBMARINE SWAP PAYOUTS
|
||||
# Disable on-the-fly swaps feature
|
||||
|
@ -84,6 +84,9 @@ def follow_send_payment(hash):
|
||||
from api.lightning.node import LNNode
|
||||
from api.models import LNPayment
|
||||
|
||||
if config("DEBUG_PERMISSIONED_PAYOUTS", cast=bool, default=False):
|
||||
return
|
||||
|
||||
lnpayment = LNPayment.objects.get(payment_hash=hash)
|
||||
lnpayment.last_routing_time = timezone.now()
|
||||
lnpayment.save()
|
||||
|
Loading…
Reference in New Issue
Block a user