| 580 | } |
| 581 | |
| 582 | bool json_to_outpoint(const char *buffer, const jsmntok_t *tok, |
| 583 | struct bitcoin_outpoint *op) |
| 584 | { |
| 585 | jsmntok_t t1, t2; |
| 586 | |
| 587 | if (!split_tok(buffer, tok, ':', &t1, &t2)) |
| 588 | return false; |
| 589 | |
| 590 | return json_to_txid(buffer, &t1, &op->txid) |
| 591 | && json_to_u32(buffer, &t2, &op->n); |
| 592 | } |
| 593 | |
| 594 | bool json_to_channel_id(const char *buffer, const jsmntok_t *tok, |
| 595 | struct channel_id *cid) |
no test coverage detected