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

Function listincoming_done

lightningd/invoice.c:930–954  ·  view source on GitHub ↗

Return from "listincoming". */

Source from the content-addressed store, hash-verified

928
929/* Return from "listincoming". */
930static void listincoming_done(const char *buffer,
931 const jsmntok_t *toks,
932 const jsmntok_t *idtok UNUSED,
933 struct invoice_info *info)
934{
935 struct command_result *ret;
936 bool warning_mpp, warning_capacity, warning_deadends, warning_offline, warning_private_unused;
937
938 ret = add_routehints(info, buffer, toks,
939 &warning_mpp,
940 &warning_capacity,
941 &warning_deadends,
942 &warning_offline,
943 &warning_private_unused);
944 if (ret)
945 return;
946
947 invoice_complete(info,
948 false,
949 warning_mpp,
950 warning_capacity,
951 warning_deadends,
952 warning_offline,
953 warning_private_unused);
954}
955
956void invoice_check_onchain_payment(struct lightningd *ld,
957 const u8 *scriptPubKey,

Callers

nothing calls this directly

Calls 2

add_routehintsFunction · 0.85
invoice_completeFunction · 0.85

Tested by

no test coverage detected