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

Function printwire_wireaddr

devtools/print_wire.c:87–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87bool printwire_wireaddr(const char *fieldname, const u8 **cursor, size_t *plen)
88{
89 struct wireaddr w;
90 if (!fromwire_wireaddr(cursor, plen, &w))
91 return false;
92 printf("%s\n", fmt_wireaddr(tmpctx, &w));
93 return true;
94}
95
96/* Returns false if we ran out of data. */
97static bool print_hexstring(const u8 **cursor, size_t *plen, size_t len)

Callers

nothing calls this directly

Calls 2

fromwire_wireaddrFunction · 0.85
fmt_wireaddrFunction · 0.85

Tested by

no test coverage detected