| 442 | } |
| 443 | |
| 444 | void json_add_outpoint(struct json_stream *result, const char *fieldname, |
| 445 | const struct bitcoin_outpoint *out) |
| 446 | { |
| 447 | char hex[hex_str_size(sizeof(out->txid))]; |
| 448 | bitcoin_txid_to_hex(&out->txid, hex, sizeof(hex)); |
| 449 | json_add_str_fmt(result, fieldname, "%s:%d", hex, out->n); |
| 450 | } |
| 451 | |
| 452 | void json_add_short_channel_id(struct json_stream *response, |
| 453 | const char *fieldname, |
no test coverage detected