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

Function scidtok_eq

plugins/pay.c:693–705  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

691}
692
693static bool scidtok_eq(const char *buf,
694 const jsmntok_t *scidtok,
695 struct short_channel_id scid)
696{
697 struct short_channel_id scid_from_tok;
698 if (!scidtok)
699 return false;
700
701 if (!json_to_short_channel_id(buf, scidtok, &scid_from_tok))
702 return false;
703
704 return short_channel_id_eq(scid, scid_from_tok);
705}
706
707/* We are the entry point, so the next hop could actually be an scid alias,
708 * so we can't just use gossmap. */

Callers 1

listpeerchannels_doneFunction · 0.85

Calls 2

short_channel_id_eqFunction · 0.85
json_to_short_channel_idFunction · 0.50

Tested by

no test coverage detected