multi: rename key_send, key-send and key send to keysend

This commit is contained in:
Conner Fromknecht
2020-01-16 04:13:59 -08:00
parent 3aba0f1eaf
commit 51dbdd3b38
13 changed files with 638 additions and 637 deletions

View File

@@ -2179,7 +2179,7 @@ var sendPaymentCommand = cli.Command{
Usage: "the number of blocks the last hop has to reveal the preimage",
},
cli.BoolFlag{
Name: "key_send",
Name: "keysend",
Usage: "will generate a pre-image and encode it in the sphinx packet, a dest must be set [experimental]",
},
),
@@ -2287,10 +2287,10 @@ func sendPayment(ctx *cli.Context) error {
var rHash []byte
if ctx.Bool("key_send") {
if ctx.Bool("keysend") {
if ctx.IsSet("payment_hash") {
return errors.New("cannot set payment hash when using " +
"key send")
"keysend")
}
var preimage lntypes.Preimage
if _, err := rand.Read(preimage[:]); err != nil {