| 449 | } |
| 450 | |
| 451 | void json_add_txid(struct json_stream *result, const char *fieldname, |
| 452 | const struct bitcoin_txid *txid) |
| 453 | { |
| 454 | char hex[hex_str_size(sizeof(*txid))]; |
| 455 | |
| 456 | bitcoin_txid_to_hex(txid, hex, sizeof(hex)); |
| 457 | json_add_string(result, fieldname, hex); |
| 458 | } |
| 459 | |
| 460 | void json_add_bitcoin_blkid(struct json_stream *result, const char *fieldname, |
| 461 | const struct bitcoin_blkid *blkid) |
no test coverage detected