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

Function printwire_wireaddr

devtools/print_wire.c:135–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135bool printwire_wireaddr(const char *fieldname, const u8 **cursor, size_t *plen)
136{
137 struct wireaddr w;
138 enum fromwireaddr_ret r;
139
140 r = fromwire_wireaddr(cursor, plen, &w);
141 if (r != FROMWIREADDR_OK && r != FROMWIREADDR_IGNORE)
142 return false;
143 printf("%s\n", fmt_wireaddr(tmpctx, &w));
144 return true;
145}
146
147/* Returns false if we ran out of data. */
148static 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