mirror of
https://github.com/lightningnetwork/lnd.git
synced 2026-08-19 13:17:32 +02:00
amount paid should be in satoshies as other fields used for amount
This commit is contained in:
parent
16b5a67c3a
commit
f0201fbb32
1 changed files with 2 additions and 1 deletions
|
|
@ -2766,6 +2766,7 @@ func createRPCInvoice(invoice *channeldb.Invoice) (*lnrpc.Invoice, error) {
|
|||
|
||||
preimage := invoice.Terms.PaymentPreimage
|
||||
satAmt := invoice.Terms.Value.ToSatoshis()
|
||||
amtPaid := invoice.AmtPaid.ToSatoshis()
|
||||
|
||||
return &lnrpc.Invoice{
|
||||
Memo: string(invoice.Memo[:]),
|
||||
|
|
@ -2784,7 +2785,7 @@ func createRPCInvoice(invoice *channeldb.Invoice) (*lnrpc.Invoice, error) {
|
|||
RouteHints: routeHints,
|
||||
AddIndex: invoice.AddIndex,
|
||||
SettleIndex: invoice.SettleIndex,
|
||||
AmtPaid: int64(invoice.AmtPaid),
|
||||
AmtPaid: int64(amtPaid),
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue