rpc: properly populate fee field in listpayments

This commit is contained in:
vegardengen authored and Olaoluwa Osuntokun committed 2018-03-06 13:21:03 -05:00
1 parent 61a7556931
commit a1fb22eb8d
1 file changed
+1
+1
View File
@@ -2927,6 +2927,7 @@ func (r *rpcServer) ListPayments(ctx context.Context,
Value: int64(payment.Terms.Value.ToSatoshis()),
CreationDate: payment.CreationDate.Unix(),
Path: path,
Fee: int64(payment.Fee.ToSatoshis()),
PaymentPreimage: hex.EncodeToString(payment.PaymentPreimage[:]),
}
}