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

Function opt_show_rgb

lightningd/options.c:415–423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

413}
414
415static bool opt_show_rgb(char *buf, size_t len, const struct lightningd *ld)
416{
417 /* Can happen with -h! */
418 if (!ld->rgb)
419 return false;
420 /* This is always set; if not by arg, then by default */
421 hex_encode(ld->rgb, 3, buf, len);
422 return true;
423}
424
425static char *opt_set_rgb(const char *arg, struct lightningd *ld)
426{

Callers

nothing calls this directly

Calls 1

hex_encodeFunction · 0.85

Tested by

no test coverage detected