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

Function opt_set_ad

devtools/onion.c:171–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171static char *opt_set_ad(const char *arg, u8 **assocdata)
172{
173 *assocdata = tal_hexdata(NULL, arg, strlen(arg));
174 if (!*assocdata)
175 return "Bad hex string";
176 return NULL;
177}
178
179static bool opt_show_ad(char *buf, size_t len, u8 *const *assocdata)
180{

Callers

nothing calls this directly

Calls 1

tal_hexdataFunction · 0.85

Tested by

no test coverage detected