mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-13 11:09:23 +01:00
udpate code to include the value_sat and value_msat fields in payments
This commit is contained in:
parent
c5bebb3b32
commit
6bc01384d6
1 changed files with 6 additions and 1 deletions
|
@ -3727,10 +3727,15 @@ func (r *rpcServer) ListPayments(ctx context.Context,
|
|||
path[i] = hex.EncodeToString(hop[:])
|
||||
}
|
||||
|
||||
msatValue := int64(payment.Terms.Value)
|
||||
satValue := int64(payment.Terms.Value.ToSatoshis())
|
||||
|
||||
paymentHash := sha256.Sum256(payment.PaymentPreimage[:])
|
||||
paymentsResp.Payments[i] = &lnrpc.Payment{
|
||||
PaymentHash: hex.EncodeToString(paymentHash[:]),
|
||||
Value: int64(payment.Terms.Value.ToSatoshis()),
|
||||
Value: satValue,
|
||||
ValueMsat: msatValue,
|
||||
ValueSat: satValue,
|
||||
CreationDate: payment.CreationDate.Unix(),
|
||||
Path: path,
|
||||
Fee: int64(payment.Fee.ToSatoshis()),
|
||||
|
|
Loading…
Add table
Reference in a new issue