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

Function print_malformed_tlv

common/test/run-bolt12-encode-test.c:133–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133static void print_malformed_tlv(const char *hrp,
134 const char *hex,
135 const char *reason)
136{
137 u8 *data = tal_hexdata(tmpctx, hex, strlen(hex));
138 assert(data);
139 printf(",{\"description\": \"%s\", \"valid\": false, \"bolt12\": \"%s\"}",
140 reason, to_bech32_charset(tmpctx, hrp, data));
141}
142
143static void print_invalid_offer(const struct tlv_offer *offer, const char *why)
144{

Callers 1

mainFunction · 0.85

Calls 2

tal_hexdataFunction · 0.85
to_bech32_charsetFunction · 0.70

Tested by

no test coverage detected