From a5a6a1711add9081f460e1821cb568273a9a5ba7 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Fri, 27 Dec 2024 19:40:09 +0100 Subject: [PATCH] Fix displayed sats --- lightning/phoenixd/phoenixd.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lightning/phoenixd/phoenixd.go b/lightning/phoenixd/phoenixd.go index 255c2d7..0d6ebe4 100644 --- a/lightning/phoenixd/phoenixd.go +++ b/lightning/phoenixd/phoenixd.go @@ -132,7 +132,7 @@ func (p *Phoenixd) GetInvoice(paymentHash string) (*lightning.Invoice, error) { var response struct { PaymentHash string `json:"paymentHash"` Preimage string `json:"preimage"` - Msats int64 `json:"receivedSat"` + Sats int64 `json:"receivedSat"` Description string `json:"description"` CreatedAt int64 `json:"createdAt"` ConfirmedAt int64 `json:"completedAt"` @@ -150,7 +150,7 @@ func (p *Phoenixd) GetInvoice(paymentHash string) (*lightning.Invoice, error) { return &lightning.Invoice{ PaymentHash: response.PaymentHash, Preimage: response.Preimage, - Msats: response.Msats, + Msats: response.Sats * 1_000, Description: response.Description, CreatedAt: createdAt, ConfirmedAt: confirmedAt,