| 190 | } |
| 191 | |
| 192 | struct peer *peer_from_json(struct lightningd *ld, |
| 193 | const char *buffer, |
| 194 | const jsmntok_t *peeridtok) |
| 195 | { |
| 196 | struct node_id peerid; |
| 197 | |
| 198 | if (!json_to_node_id(buffer, peeridtok, &peerid)) |
| 199 | return NULL; |
| 200 | |
| 201 | return peer_by_id(ld, &peerid); |
| 202 | } |
| 203 | |
| 204 | u8 *p2wpkh_for_keyidx(const tal_t *ctx, struct lightningd *ld, u64 keyidx) |
| 205 | { |
no test coverage detected