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

Function find_sent_by_secret

plugins/fetchinvoice.c:57–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55};
56
57static struct sent *find_sent_by_secret(const struct secret *pathsecret)
58{
59 struct sent *i;
60
61 list_for_each(&sent_list, i, list) {
62 if (i->reply_secret && secret_eq_consttime(i->reply_secret, pathsecret))
63 return i;
64 }
65 return NULL;
66}
67
68/* Hack to suppress warnings when we finish a different command */
69static void discard_result(struct command_result *ret)

Callers 1

Calls 1

secret_eq_consttimeFunction · 0.85

Tested by

no test coverage detected