lnrpc: Deprecate fee field in payment struct

This commit is contained in:
carla
2019-07-08 17:38:44 -04:00
parent b162595929
commit af10009c93
4 changed files with 365 additions and 328 deletions

View File

@@ -4203,6 +4203,8 @@ func (r *rpcServer) ListPayments(ctx context.Context,
CreationDate: payment.Info.CreationDate.Unix(),
Path: path,
Fee: int64(route.TotalFees().ToSatoshis()),
FeeSat: int64(route.TotalFees().ToSatoshis()),
FeeMsat: int64(route.TotalFees()),
PaymentPreimage: hex.EncodeToString(preimage[:]),
PaymentRequest: string(payment.Info.PaymentRequest),
Status: status,