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