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

Function payment_addgossip_failure

plugins/libplugin-pay.c:1476–1485  ·  view source on GitHub ↗

If someone gives us an invalid update, all we can do is log it */

Source from the content-addressed store, hash-verified

1474
1475/* If someone gives us an invalid update, all we can do is log it */
1476static struct command_result *
1477payment_addgossip_failure(struct command *cmd, const char *buffer,
1478 const jsmntok_t *toks, struct payment *p)
1479{
1480 paymod_log(p, LOG_DBG, "Invalid channel_update: %.*s",
1481 json_tok_full_len(toks),
1482 json_tok_full(buffer, toks));
1483
1484 return payment_addgossip_success(cmd, NULL, NULL, p);
1485}
1486
1487static struct command_result *
1488payment_waitsendpay_finished(struct command *cmd, const char *buffer,

Callers

nothing calls this directly

Calls 4

paymod_logFunction · 0.85
json_tok_full_lenFunction · 0.50
json_tok_fullFunction · 0.50

Tested by

no test coverage detected