| 257 | } |
| 258 | |
| 259 | static struct node *make_peer_node(const tal_t *ctx) |
| 260 | { |
| 261 | struct node *n = tal(ctx, struct node); |
| 262 | struct pubkey pubkey; |
| 263 | |
| 264 | /* l2's secret key */ |
| 265 | if (!hex_decode("0c633a7c17c701a0980158f5483035e01fa8bd091b47fadf2e86e589a9f93fca", |
| 266 | strlen("0c633a7c17c701a0980158f5483035e01fa8bd091b47fadf2e86e589a9f93fca"), |
| 267 | &n->p, sizeof(n->p))) |
| 268 | abort(); |
| 269 | pubkey_from_privkey(&n->p, &pubkey); |
| 270 | node_id_from_pubkey(&n->id, &pubkey); |
| 271 | n->name = tal_fmt(n, "lightningd-2"); |
| 272 | |
| 273 | return n; |
| 274 | } |
| 275 | |
| 276 | /* expected_id is NULL for initial node (aka l2) */ |
| 277 | static struct node *get_current_node(struct info *info, |
no test coverage detected