cmd/lncli: add min relay fee to lncli wallet estimatefeerate

This commit adds the new value that was added to the RPC response to the
CLI output as well.
This commit is contained in:
Oliver Gugger 2024-08-08 09:24:49 +02:00
parent 5a84ca8032
commit eac54601fb
No known key found for this signature in database
GPG Key ID: 8E4256593F177720

View File

@ -164,13 +164,20 @@ func estimateFeeRate(ctx *cli.Context) error {
rateKW := chainfee.SatPerKWeight(resp.SatPerKw)
rateVB := rateKW.FeePerVByte()
relayFeeKW := chainfee.SatPerKWeight(resp.MinRelayFeeSatPerKw)
relayFeeVB := relayFeeKW.FeePerVByte()
printJSON(struct {
SatPerKw int64 `json:"sat_per_kw"`
SatPerVByte int64 `json:"sat_per_vbyte"`
SatPerKw int64 `json:"sat_per_kw"`
SatPerVByte int64 `json:"sat_per_vbyte"`
MinRelayFeeSatPerKw int64 `json:"min_relay_fee_sat_per_kw"`
//nolint:lll
MinRelayFeeSatPerVByte int64 `json:"min_relay_fee_sat_per_vbyte"`
}{
SatPerKw: int64(rateKW),
SatPerVByte: int64(rateVB),
SatPerKw: int64(rateKW),
SatPerVByte: int64(rateVB),
MinRelayFeeSatPerKw: int64(relayFeeKW),
MinRelayFeeSatPerVByte: int64(relayFeeVB),
})
return nil