| 578 | } |
| 579 | |
| 580 | bool json_to_short_channel_id_dir(const char *buffer, const jsmntok_t *tok, |
| 581 | struct short_channel_id_dir *scidd) |
| 582 | { |
| 583 | jsmntok_t scidtok, numtok; |
| 584 | |
| 585 | if (!split_tok(buffer, tok, '/', &scidtok, &numtok)) |
| 586 | return false; |
| 587 | |
| 588 | if (!json_to_short_channel_id(buffer, &scidtok, &scidd->scid)) |
| 589 | return false; |
| 590 | |
| 591 | if (!json_to_zero_or_one(buffer, &numtok, &scidd->dir)) |
| 592 | return false; |
| 593 | |
| 594 | return true; |
| 595 | } |
| 596 | |
| 597 | bool json_to_txid(const char *buffer, const jsmntok_t *tok, |
| 598 | struct bitcoin_txid *txid) |
no test coverage detected