multi: add new method FeePerVByte to avoid manual conversion

This commit is contained in:
yyforyongyu committed 2023-10-13 17:00:53 +08:00
1 parent a46168e669
commit 0532b82dd5
6 files changed
+17 -16

No files matched your search

+2 -2
View File
@@ -1197,10 +1197,10 @@ func (r *rpcServer) EstimateFee(ctx context.Context,
resp := &lnrpc.EstimateFeeResponse{
FeeSat: totalFee,
SatPerVbyte: uint64(feePerKw.FeePerKVByte() / 1000),
SatPerVbyte: uint64(feePerKw.FeePerVByte()),
// Deprecated field.
FeerateSatPerByte: int64(feePerKw.FeePerKVByte() / 1000),
FeerateSatPerByte: int64(feePerKw.FeePerVByte()),
}
rpcsLog.Debugf("[estimatefee] fee estimate for conf target %d: %v",