rpc: properly populate fee field in listpayments

This commit is contained in:
vegardengen 2018-03-06 19:21:03 +01:00 committed by Olaoluwa Osuntokun
parent 61a7556931
commit a1fb22eb8d
1 changed files with 1 additions and 0 deletions

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[:]),
}
}