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

Function payment_addgossip_failure

plugins/libplugin-pay.c:1620–1631  ·  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

1618
1619/* If someone gives us an invalid update, all we can do is log it */
1620static struct command_result *
1621payment_addgossip_failure(struct command *cmd,
1622 const char *method,
1623 const char *buffer,
1624 const jsmntok_t *toks, struct payment *p)
1625{
1626 paymod_log(p, LOG_DBG, "Invalid channel_update: %.*s",
1627 json_tok_full_len(toks),
1628 json_tok_full(buffer, toks));
1629
1630 return payment_addgossip_success(cmd, NULL, NULL, NULL, p);
1631}
1632
1633static struct command_result *
1634payment_waitsendpay_finished(struct command *cmd,

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