diff --git a/.env-sample b/.env-sample index def417c8..fb5c3952 100644 --- a/.env-sample +++ b/.env-sample @@ -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 diff --git a/api/tasks.py b/api/tasks.py index 2b2a55a3..20f5c50d 100644 --- a/api/tasks.py +++ b/api/tasks.py @@ -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()