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

Function find_decoder

common/bolt11.c:698–705  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

696};
697
698static const struct decoder *find_decoder(char c)
699{
700 for (size_t i = 0; i < ARRAY_SIZE(decoders); i++) {
701 if (decoders[i].letter == c)
702 return decoders + i;
703 }
704 return NULL;
705}
706
707static bool bech32_decode_alloc(const tal_t *ctx,
708 const char **hrp_ret,

Callers 1

bolt11_decode_nosigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected