Skip to content

Commit

Permalink
fix: temporarily disable Pay
Browse files Browse the repository at this point in the history
  • Loading branch information
jackstar12 committed Oct 31, 2024
1 parent 632b318 commit daf06c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BTCPayServer.Plugins.Boltz/BoltzLightningClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ public async Task<PayResponse> Pay(PayInvoiceParams payParams,

public async Task<PayResponse> Pay(string bolt11, CancellationToken cancellation = default)
{
throw new InvalidOperationException("paying invoices through boltz is temporarily disabled");
var invoice = BOLT11PaymentRequest.Parse(bolt11, network);
if (invoice.MinimumAmount == 0)
{
Expand Down Expand Up @@ -281,8 +282,7 @@ public async Task<PayResponse> Pay(string bolt11, CancellationToken cancellation
return new PayResponse(PayResult.Ok, payDetails);
}

// FIXME: reduce to 15 again once v2.0.1 is released
var source = new CancellationTokenSource(TimeSpan.FromSeconds(70));
var source = new CancellationTokenSource(TimeSpan.FromSeconds(15));
cancellation.Register(source.Cancel);
try
{
Expand Down

0 comments on commit daf06c1

Please sign in to comment.