MCPcopy Create free account
hub / github.com/ElementsProject/lightning / param_route_hop_style

Function param_route_hop_style

lightningd/pay.c:1347–1363  ·  view source on GitHub ↗

FIXME: We accept his parameter for now, will deprecate eventually */

Source from the content-addressed store, hash-verified

1345
1346/* FIXME: We accept his parameter for now, will deprecate eventually */
1347static struct command_result *param_route_hop_style(struct command *cmd,
1348 const char *name,
1349 const char *buffer,
1350 const jsmntok_t *tok,
1351 int **unused)
1352{
1353 if (json_tok_streq(buffer, tok, "tlv")) {
1354 return NULL;
1355 }
1356
1357 /* We still let you *specify* this, but we ignore it! */
1358 if (deprecated_apis && json_tok_streq(buffer, tok, "legacy"))
1359 return NULL;
1360
1361 return command_fail_badparam(cmd, name, buffer, tok,
1362 "should be 'tlv' ('legacy' not supported)");
1363}
1364
1365static struct command_result *param_route_hops(struct command *cmd,
1366 const char *name,

Callers

nothing calls this directly

Calls 2

command_fail_badparamFunction · 0.85
json_tok_streqFunction · 0.50

Tested by

no test coverage detected