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