| 609 | } |
| 610 | |
| 611 | bool json_to_outpoint(const char *buffer, const jsmntok_t *tok, |
| 612 | struct bitcoin_outpoint *op) |
| 613 | { |
| 614 | jsmntok_t t1, t2; |
| 615 | |
| 616 | if (!split_tok(buffer, tok, ':', &t1, &t2)) |
| 617 | return false; |
| 618 | |
| 619 | return json_to_txid(buffer, &t1, &op->txid) |
| 620 | && json_to_u32(buffer, &t2, &op->n); |
| 621 | } |
| 622 | |
| 623 | bool json_to_channel_id(const char *buffer, const jsmntok_t *tok, |
| 624 | struct channel_id *cid) |
no test coverage detected