| 433 | } |
| 434 | |
| 435 | void json_add_txid(struct json_stream *result, const char *fieldname, |
| 436 | const struct bitcoin_txid *txid) |
| 437 | { |
| 438 | char hex[hex_str_size(sizeof(*txid))]; |
| 439 | |
| 440 | bitcoin_txid_to_hex(txid, hex, sizeof(hex)); |
| 441 | json_add_string(result, fieldname, hex); |
| 442 | } |
| 443 | |
| 444 | void json_add_outpoint(struct json_stream *result, const char *fieldname, |
| 445 | const struct bitcoin_outpoint *out) |
no test coverage detected