| 467 | } |
| 468 | |
| 469 | void json_add_outpoint(struct json_stream *result, const char *fieldname, |
| 470 | const struct bitcoin_outpoint *out) |
| 471 | { |
| 472 | char hex[hex_str_size(sizeof(out->txid))]; |
| 473 | bitcoin_txid_to_hex(&out->txid, hex, sizeof(hex)); |
| 474 | json_add_str_fmt(result, fieldname, "%s:%d", hex, out->n); |
| 475 | } |
| 476 | |
| 477 | void json_add_short_channel_id(struct json_stream *response, |
| 478 | const char *fieldname, |
no test coverage detected