| 56 | } |
| 57 | |
| 58 | static struct pending_open * |
| 59 | new_channel_open(const tal_t *ctx, |
| 60 | struct plugin *p, |
| 61 | const struct node_id id, |
| 62 | const struct channel_id cid, |
| 63 | const struct wally_psbt *psbt STEALS) |
| 64 | { |
| 65 | struct pending_open *open; |
| 66 | |
| 67 | /* Make sure we haven't gotten this yet */ |
| 68 | assert(!find_channel_pending_open(&cid)); |
| 69 | |
| 70 | open = tal(ctx, struct pending_open); |
| 71 | open->p = p; |
| 72 | open->peer_id = id; |
| 73 | open->channel_id = cid; |
| 74 | open->psbt = tal_steal(open, psbt); |
| 75 | |
| 76 | list_add_tail(&pending_opens, &open->list); |
| 77 | |
| 78 | return open; |
| 79 | } |
| 80 | |
| 81 | static struct command_result * |
| 82 | unreserve_done(struct command *aux_cmd, |
no test coverage detected