mirror of
https://github.com/aljazceru/BTCPayServerPlugins.git
synced 2025-12-17 07:34:24 +01:00
update blink
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
<PropertyGroup>
|
||||
<Product>Blink</Product>
|
||||
<Description>Blink Lightning support</Description>
|
||||
<Version>1.0.6</Version>
|
||||
<Version>1.0.7</Version>
|
||||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
||||
<RootNamespace>BTCPayServer.Plugins.Blink</RootNamespace>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -624,6 +624,11 @@ mutation LnInvoicePaymentSend($input: LnInvoicePaymentInput!) {
|
||||
null => PayResult.Unknown,
|
||||
_ => throw new ArgumentOutOfRangeException()
|
||||
};
|
||||
if (result.Result == PayResult.Error && response.TryGetValue("errors", out var error) && error.ToString().Contains("ResourceAttemptsRedlockServiceError", StringComparison.InvariantCultureIgnoreCase))
|
||||
{
|
||||
await Task.Delay(Random.Shared.Next(200, 600), cts.Token);
|
||||
return await Pay(bolt11, payParams, cts.Token);
|
||||
}
|
||||
if (response["transaction"]?.Value<JObject>() is not null)
|
||||
{
|
||||
result.Details = new PayDetails()
|
||||
|
||||
Reference in New Issue
Block a user