| 691 | } |
| 692 | |
| 693 | static bool scidtok_eq(const char *buf, |
| 694 | const jsmntok_t *scidtok, |
| 695 | struct short_channel_id scid) |
| 696 | { |
| 697 | struct short_channel_id scid_from_tok; |
| 698 | if (!scidtok) |
| 699 | return false; |
| 700 | |
| 701 | if (!json_to_short_channel_id(buf, scidtok, &scid_from_tok)) |
| 702 | return false; |
| 703 | |
| 704 | return short_channel_id_eq(scid, scid_from_tok); |
| 705 | } |
| 706 | |
| 707 | /* We are the entry point, so the next hop could actually be an scid alias, |
| 708 | * so we can't just use gossmap. */ |
no test coverage detected