Fix prism on bolt11 specific payment

This commit is contained in:
Kukks
2023-08-04 14:58:59 +02:00
parent 646554d5d6
commit 9fd89dffbb
4 changed files with 8 additions and 11 deletions

View File

@@ -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>

View File

@@ -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>

View File

@@ -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;
}

View File

@@ -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);
}
}
}