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

Function payment_addgossip_failure

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

1634
1635/* If someone gives us an invalid update, all we can do is log it */
1636static struct command_result *
1637payment_addgossip_failure(struct command *cmd,
1638 const char *method,
1639 const char *buffer,
1640 const jsmntok_t *toks, struct payment *p)
1641{
1642 paymod_log(p, LOG_DBG, "Invalid channel_update: %.*s",
1643 json_tok_full_len(toks),
1644 json_tok_full(buffer, toks));
1645
1646 return payment_addgossip_success(cmd, NULL, NULL, NULL, p);
1647}
1648
1649static struct command_result *
1650payment_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