| 197 | } |
| 198 | |
| 199 | struct peer *peer_from_json(struct lightningd *ld, |
| 200 | const char *buffer, |
| 201 | const jsmntok_t *peeridtok) |
| 202 | { |
| 203 | struct node_id peerid; |
| 204 | |
| 205 | if (!json_to_node_id(buffer, peeridtok, &peerid)) |
| 206 | return NULL; |
| 207 | |
| 208 | return peer_by_id(ld, &peerid); |
| 209 | } |
| 210 | |
| 211 | u8 *p2wpkh_for_keyidx(const tal_t *ctx, struct lightningd *ld, u64 keyidx) |
| 212 | { |
no test coverage detected