mirror of
https://github.com/RoboSats/robosats.git
synced 2025-01-31 02:21: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
|
# Routing timeouts
|
||||||
REWARDS_TIMEOUT_SECONDS = 30
|
REWARDS_TIMEOUT_SECONDS = 30
|
||||||
PAYOUT_TIMEOUT_SECONDS = 90
|
PAYOUT_TIMEOUT_SECONDS = 90
|
||||||
|
DEBUG_PERMISSIONED_PAYOUTS = False
|
||||||
|
|
||||||
# REVERSE SUBMARINE SWAP PAYOUTS
|
# REVERSE SUBMARINE SWAP PAYOUTS
|
||||||
# Disable on-the-fly swaps feature
|
# Disable on-the-fly swaps feature
|
||||||
|
@ -84,6 +84,9 @@ def follow_send_payment(hash):
|
|||||||
from api.lightning.node import LNNode
|
from api.lightning.node import LNNode
|
||||||
from api.models import LNPayment
|
from api.models import LNPayment
|
||||||
|
|
||||||
|
if config("DEBUG_PERMISSIONED_PAYOUTS", cast=bool, default=False):
|
||||||
|
return
|
||||||
|
|
||||||
lnpayment = LNPayment.objects.get(payment_hash=hash)
|
lnpayment = LNPayment.objects.get(payment_hash=hash)
|
||||||
lnpayment.last_routing_time = timezone.now()
|
lnpayment.last_routing_time = timezone.now()
|
||||||
lnpayment.save()
|
lnpayment.save()
|
||||||
|
Loading…
Reference in New Issue
Block a user