sendpay: remove style legacy setting.

We ignored it anyway.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Removed: JSON-RPC: `sendpay` `route` argument `style` "legacy" (deprecated v0.11.0)
This commit is contained in:
Rusty Russell 2022-12-12 16:37:04 +10:30
parent 66bde4bd9f
commit 62333425c2

View File

@ -1354,10 +1354,6 @@ static struct command_result *param_route_hop_style(struct command *cmd,
return NULL;
}
/* We still let you *specify* this, but we ignore it! */
if (deprecated_apis && json_tok_streq(buffer, tok, "legacy"))
return NULL;
return command_fail_badparam(cmd, name, buffer, tok,
"should be 'tlv' ('legacy' not supported)");
}