mirror of
https://github.com/aljazceru/BTCPayServerPlugins.git
synced 2025-12-17 07:34:24 +01:00
Fix prism on bolt11 specific payment
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
<PropertyGroup>
|
||||
<Product>LN Prism</Product>
|
||||
<Description>Automated value splits for lightning.</Description>
|
||||
<Version>1.1.9</Version>
|
||||
<Version>1.1.10</Version>
|
||||
</PropertyGroup>
|
||||
<!-- Plugin development properties -->
|
||||
<PropertyGroup>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<div class="row mt-4">
|
||||
@if (DestinationBalance?.Any() is true)
|
||||
{
|
||||
<div class="col-sm-12 col-md-5 col-xxl-constrain border border-light">
|
||||
<div class="col-sm-12 col-md-6 col-xxl-constrain border border-light">
|
||||
<h4 class="text-center p-2">Destination Pending Balances</h4>
|
||||
<table class="table table-responsive">
|
||||
<tr>
|
||||
@@ -12,7 +12,7 @@
|
||||
@foreach (var (dest, balance) in DestinationBalance)
|
||||
{
|
||||
<tr>
|
||||
<td>@dest</td>
|
||||
<td class="text-truncate" style="max-width: 200px">@dest</td>
|
||||
<td>@(balance / 1000m)</td>
|
||||
<td>
|
||||
@if (UpdatingDestination == dest)
|
||||
@@ -36,7 +36,7 @@
|
||||
|
||||
@if (PendingPayouts?.Any() is true)
|
||||
{
|
||||
<div class="col-sm-12 col-md-5 offset-md-1 col-xxl-constrain border border-light">
|
||||
<div class="col-sm-12 col-md-6 col-xxl-constrain border border-light">
|
||||
<h4 class="text-center p-2">Pending Payouts</h4>
|
||||
<table class="table">
|
||||
<tr>
|
||||
|
||||
@@ -340,14 +340,12 @@ var onChainCatchAllIdentifier = "*"+ PaymentTypes.BTCLike.ToStringNormalized();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (pmd is null)
|
||||
{
|
||||
pm = invoiceEvent.Invoice.GetPaymentMethod(new PaymentMethodId("BTC", PaymentTypes.LightningLike));
|
||||
}
|
||||
pm = invoiceEvent.Invoice.GetPaymentMethod(invoiceEvent.Invoice.GetPayments(true)
|
||||
.FirstOrDefault()?.GetPaymentMethodId());
|
||||
prism = catchAllPrism;
|
||||
}
|
||||
var splits = prism?.Destinations;
|
||||
if (splits?.Any() is not true)
|
||||
if (splits?.Any() is not true || pm is null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -46,8 +46,7 @@ public class WasabiCoordinatorStatusFetcher : PeriodicRunner, IWasabiBackendStat
|
||||
catch (Exception e)
|
||||
{
|
||||
Connected = false;
|
||||
_logger.LogError(e, "Could not connect to the coordinator");
|
||||
throw;
|
||||
throw new Exception("Could not connect to the coordinator", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user