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> <PropertyGroup>
<Product>LN Prism</Product> <Product>LN Prism</Product>
<Description>Automated value splits for lightning.</Description> <Description>Automated value splits for lightning.</Description>
<Version>1.1.9</Version> <Version>1.1.10</Version>
</PropertyGroup> </PropertyGroup>
<!-- Plugin development properties --> <!-- Plugin development properties -->
<PropertyGroup> <PropertyGroup>

View File

@@ -1,7 +1,7 @@
<div class="row mt-4"> <div class="row mt-4">
@if (DestinationBalance?.Any() is true) @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> <h4 class="text-center p-2">Destination Pending Balances</h4>
<table class="table table-responsive"> <table class="table table-responsive">
<tr> <tr>
@@ -12,7 +12,7 @@
@foreach (var (dest, balance) in DestinationBalance) @foreach (var (dest, balance) in DestinationBalance)
{ {
<tr> <tr>
<td>@dest</td> <td class="text-truncate" style="max-width: 200px">@dest</td>
<td>@(balance / 1000m)</td> <td>@(balance / 1000m)</td>
<td> <td>
@if (UpdatingDestination == dest) @if (UpdatingDestination == dest)
@@ -36,7 +36,7 @@
@if (PendingPayouts?.Any() is true) @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> <h4 class="text-center p-2">Pending Payouts</h4>
<table class="table"> <table class="table">
<tr> <tr>

View File

@@ -340,14 +340,12 @@ var onChainCatchAllIdentifier = "*"+ PaymentTypes.BTCLike.ToStringNormalized();
} }
else else
{ {
if (pmd is null) pm = invoiceEvent.Invoice.GetPaymentMethod(invoiceEvent.Invoice.GetPayments(true)
{ .FirstOrDefault()?.GetPaymentMethodId());
pm = invoiceEvent.Invoice.GetPaymentMethod(new PaymentMethodId("BTC", PaymentTypes.LightningLike));
}
prism = catchAllPrism; prism = catchAllPrism;
} }
var splits = prism?.Destinations; var splits = prism?.Destinations;
if (splits?.Any() is not true) if (splits?.Any() is not true || pm is null)
{ {
return; return;
} }

View File

@@ -46,8 +46,7 @@ public class WasabiCoordinatorStatusFetcher : PeriodicRunner, IWasabiBackendStat
catch (Exception e) catch (Exception e)
{ {
Connected = false; Connected = false;
_logger.LogError(e, "Could not connect to the coordinator"); throw new Exception("Could not connect to the coordinator", e);
throw;
} }
} }
} }