| 238 | } |
| 239 | |
| 240 | static char *fmt_bitcoin_blkid(const tal_t *ctx, |
| 241 | const struct bitcoin_blkid *blkid) |
| 242 | { |
| 243 | char *hexstr = tal_arr(ctx, char, hex_str_size(sizeof(*blkid))); |
| 244 | |
| 245 | bitcoin_blkid_to_hex(blkid, hexstr, hex_str_size(sizeof(*blkid))); |
| 246 | return hexstr; |
| 247 | } |
| 248 | REGISTER_TYPE_TO_STRING(bitcoin_blkid, fmt_bitcoin_blkid); |
| 249 | |
| 250 | void fromwire_bitcoin_blkid(const u8 **cursor, size_t *max, |
nothing calls this directly
no test coverage detected