add fee to amount in invoice for breez

This commit is contained in:
Kukks
2024-06-11 17:02:02 +02:00
parent 60181f1770
commit 47887a4073
2 changed files with 2 additions and 2 deletions

View File

@@ -9,7 +9,7 @@
<PropertyGroup> <PropertyGroup>
<Product>Breez / Greenlight</Product> <Product>Breez / Greenlight</Product>
<Description>Lightweight lightning baby!</Description> <Description>Lightweight lightning baby!</Description>
<Version>1.0.2</Version> <Version>1.0.3</Version>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup> </PropertyGroup>
<!-- Plugin development properties --> <!-- Plugin development properties -->

View File

@@ -107,7 +107,7 @@ public class BreezLightningClient : ILightningClient, IDisposable, EventListener
return new LightningInvoice() return new LightningInvoice()
{ {
Amount = LightMoney.MilliSatoshis(p.amountMsat), Amount = LightMoney.MilliSatoshis(p.amountMsat + p.feeMsat),
Id = lnPaymentDetails.data.paymentHash, Id = lnPaymentDetails.data.paymentHash,
Preimage = lnPaymentDetails.data.paymentPreimage, Preimage = lnPaymentDetails.data.paymentPreimage,
PaymentHash = lnPaymentDetails.data.paymentHash, PaymentHash = lnPaymentDetails.data.paymentHash,