mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-20 02:56:47 +01:00
typos: fix updatechanpolicy typos
This commit is contained in:
@@ -2044,32 +2044,35 @@ var updateChannelPolicyCommand = cli.Command{
|
|||||||
ArgsUsage: "base_fee_msat fee_rate time_lock_delta " +
|
ArgsUsage: "base_fee_msat fee_rate time_lock_delta " +
|
||||||
"[--max_htlc_msat=N] [channel_point]",
|
"[--max_htlc_msat=N] [channel_point]",
|
||||||
Description: `
|
Description: `
|
||||||
Updates the channel policy for all channels, or just a particular channel
|
Updates the channel policy for all channels, or just a particular
|
||||||
identified by its channel point. The update will be committed, and
|
channel identified by its channel point. The update will be committed,
|
||||||
broadcast to the rest of the network within the next batch.
|
and broadcast to the rest of the network within the next batch. Channel
|
||||||
Channel points are encoded as: funding_txid:output_index`,
|
points are encoded as: funding_txid:output_index
|
||||||
|
`,
|
||||||
Flags: []cli.Flag{
|
Flags: []cli.Flag{
|
||||||
cli.Int64Flag{
|
cli.Int64Flag{
|
||||||
Name: "base_fee_msat",
|
Name: "base_fee_msat",
|
||||||
Usage: "the base fee in milli-satoshis that will " +
|
Usage: "the base fee in milli-satoshis that will be " +
|
||||||
"be charged for each forwarded HTLC, regardless " +
|
"charged for each forwarded HTLC, regardless " +
|
||||||
"of payment size",
|
"of payment size",
|
||||||
},
|
},
|
||||||
cli.StringFlag{
|
cli.StringFlag{
|
||||||
Name: "fee_rate",
|
Name: "fee_rate",
|
||||||
Usage: "the fee rate that will be charged " +
|
Usage: "the fee rate that will be charged " +
|
||||||
"proportionally based on the value of each " +
|
"proportionally based on the value of each " +
|
||||||
"forwarded HTLC, the lowest possible rate is 0 " +
|
"forwarded HTLC, the lowest possible rate is " +
|
||||||
"with a granularity of 0.000001 (millionths). Can not " +
|
"0 with a granularity of 0.000001 " +
|
||||||
"be set at the same time as fee_rate_ppm.",
|
"(millionths). Can not be set at the same " +
|
||||||
|
"time as fee_rate_ppm",
|
||||||
},
|
},
|
||||||
cli.Uint64Flag{
|
cli.Uint64Flag{
|
||||||
Name: "fee_rate_ppm",
|
Name: "fee_rate_ppm",
|
||||||
Usage: "the fee rate ppm (parts per million) that " +
|
Usage: "the fee rate ppm (parts per million) that " +
|
||||||
"will be charged proportionally based on the value of each " +
|
"will be charged proportionally based on the " +
|
||||||
"forwarded HTLC, the lowest possible rate is 0 " +
|
"value of each forwarded HTLC, the lowest " +
|
||||||
"with a granularity of 0.000001 (millionths). Can not " +
|
"possible rate is 0 with a granularity of " +
|
||||||
"be set at the same time as fee_rate.",
|
"0.000001 (millionths). Can not be set at " +
|
||||||
|
"the same time as fee_rate",
|
||||||
},
|
},
|
||||||
cli.Uint64Flag{
|
cli.Uint64Flag{
|
||||||
Name: "time_lock_delta",
|
Name: "time_lock_delta",
|
||||||
@@ -2078,21 +2081,22 @@ var updateChannelPolicyCommand = cli.Command{
|
|||||||
},
|
},
|
||||||
cli.Uint64Flag{
|
cli.Uint64Flag{
|
||||||
Name: "min_htlc_msat",
|
Name: "min_htlc_msat",
|
||||||
Usage: "if set, the min HTLC size that will be applied " +
|
Usage: "if set, the min HTLC size that will be " +
|
||||||
"to all forwarded HTLCs. If unset, the min HTLC " +
|
"applied to all forwarded HTLCs. If unset, " +
|
||||||
"is left unchanged.",
|
"the min HTLC is left unchanged",
|
||||||
},
|
},
|
||||||
cli.Uint64Flag{
|
cli.Uint64Flag{
|
||||||
Name: "max_htlc_msat",
|
Name: "max_htlc_msat",
|
||||||
Usage: "if set, the max HTLC size that will be applied " +
|
Usage: "if set, the max HTLC size that will be " +
|
||||||
"to all forwarded HTLCs. If unset, the max HTLC " +
|
"applied to all forwarded HTLCs. If unset, " +
|
||||||
"is left unchanged.",
|
"the max HTLC is left unchanged",
|
||||||
},
|
},
|
||||||
cli.StringFlag{
|
cli.StringFlag{
|
||||||
Name: "chan_point",
|
Name: "chan_point",
|
||||||
Usage: "The channel whose fee policy should be " +
|
Usage: "the channel which this policy update should " +
|
||||||
"updated, if nil the policies for all channels " +
|
"be applied to. If nil, the policies for all " +
|
||||||
"will be updated. Takes the form of: txid:output_index",
|
"channels will be updated. Takes the form of " +
|
||||||
|
"txid:output_index",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Action: actionDecorator(updateChannelPolicy),
|
Action: actionDecorator(updateChannelPolicy),
|
||||||
@@ -2122,12 +2126,10 @@ func parseChanPoint(s string) (*lnrpc.ChannelPoint, error) {
|
|||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// parseTimeLockDelta is expected to get a uint16 type of timeLockDelta,
|
// parseTimeLockDelta is expected to get a uint16 type of timeLockDelta. Its
|
||||||
// which maximum value is MaxTimeLockDelta.
|
// maximum value is MaxTimeLockDelta.
|
||||||
func parseTimeLockDelta(timeLockDeltaStr string) (uint16, error) {
|
func parseTimeLockDelta(timeLockDeltaStr string) (uint16, error) {
|
||||||
timeLockDeltaUnCheck, err := strconv.ParseUint(
|
timeLockDeltaUnCheck, err := strconv.ParseUint(timeLockDeltaStr, 10, 64)
|
||||||
timeLockDeltaStr, 10, 64,
|
|
||||||
)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, fmt.Errorf("failed to parse time_lock_delta: %s "+
|
return 0, fmt.Errorf("failed to parse time_lock_delta: %s "+
|
||||||
"to uint64, err: %v", timeLockDeltaStr, err)
|
"to uint64, err: %v", timeLockDeltaStr, err)
|
||||||
|
|||||||
@@ -6948,8 +6948,8 @@ func (r *rpcServer) UpdateChannelPolicy(ctx context.Context,
|
|||||||
MinHTLC: minHtlc,
|
MinHTLC: minHtlc,
|
||||||
}
|
}
|
||||||
|
|
||||||
rpcsLog.Debugf("[updatechanpolicy] updating channel policy base_fee=%v, "+
|
rpcsLog.Debugf("[updatechanpolicy] updating channel policy "+
|
||||||
"rate_fixed=%v, time_lock_delta: %v, "+
|
"base_fee=%v, rate_fixed=%v, time_lock_delta: %v, "+
|
||||||
"min_htlc=%v, max_htlc=%v, targets=%v",
|
"min_htlc=%v, max_htlc=%v, targets=%v",
|
||||||
req.BaseFeeMsat, feeRateFixed, req.TimeLockDelta,
|
req.BaseFeeMsat, feeRateFixed, req.TimeLockDelta,
|
||||||
minHtlc, maxHtlc,
|
minHtlc, maxHtlc,
|
||||||
|
|||||||
Reference in New Issue
Block a user