lncli: remove debug send
Debug send has been removed some time ago. This is a left over.
This commit is contained in:
parent
af1b8a549d
commit
15eedd2b1a
@ -2144,12 +2144,6 @@ var sendPaymentCommand = cli.Command{
|
|||||||
* --amt=A
|
* --amt=A
|
||||||
* --final_cltv_delta=T
|
* --final_cltv_delta=T
|
||||||
* --payment_hash=H
|
* --payment_hash=H
|
||||||
|
|
||||||
The --debug_send flag is provided for usage *purely* in test
|
|
||||||
environments. If specified, then the payment hash isn't required, as
|
|
||||||
it'll use the hash of all zeroes. This mode allows one to quickly test
|
|
||||||
payment connectivity without having to create an invoice at the
|
|
||||||
destination.
|
|
||||||
`,
|
`,
|
||||||
ArgsUsage: "dest amt payment_hash final_cltv_delta | --pay_req=[payment request]",
|
ArgsUsage: "dest amt payment_hash final_cltv_delta | --pay_req=[payment request]",
|
||||||
Flags: append(paymentFlags(),
|
Flags: append(paymentFlags(),
|
||||||
@ -2166,10 +2160,6 @@ var sendPaymentCommand = cli.Command{
|
|||||||
Name: "payment_hash, r",
|
Name: "payment_hash, r",
|
||||||
Usage: "the hash to use within the payment's HTLC",
|
Usage: "the hash to use within the payment's HTLC",
|
||||||
},
|
},
|
||||||
cli.BoolFlag{
|
|
||||||
Name: "debug_send",
|
|
||||||
Usage: "use the debug rHash when sending the HTLC",
|
|
||||||
},
|
|
||||||
cli.Int64Flag{
|
cli.Int64Flag{
|
||||||
Name: "final_cltv_delta",
|
Name: "final_cltv_delta",
|
||||||
Usage: "the number of blocks the last hop has to reveal the preimage",
|
Usage: "the number of blocks the last hop has to reveal the preimage",
|
||||||
@ -2276,9 +2266,6 @@ func sendPayment(ctx *cli.Context) error {
|
|||||||
Amt: amount,
|
Amt: amount,
|
||||||
}
|
}
|
||||||
|
|
||||||
if ctx.Bool("debug_send") && (ctx.IsSet("payment_hash") || args.Present()) {
|
|
||||||
return fmt.Errorf("do not provide a payment hash with debug send")
|
|
||||||
} else if !ctx.Bool("debug_send") {
|
|
||||||
var rHash []byte
|
var rHash []byte
|
||||||
|
|
||||||
switch {
|
switch {
|
||||||
@ -2310,7 +2297,6 @@ func sendPayment(ctx *cli.Context) error {
|
|||||||
}
|
}
|
||||||
req.FinalCltvDelta = int32(delta)
|
req.FinalCltvDelta = int32(delta)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return sendPaymentRequest(ctx, req)
|
return sendPaymentRequest(ctx, req)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user