| 133 | } |
| 134 | |
| 135 | bool 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. */ |
| 148 | static bool print_hexstring(const u8 **cursor, size_t *plen, size_t len) |
nothing calls this directly
no test coverage detected