mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
connectd: hold peer until we're interested.
Either because lightningd tells us it wants to talk, or because the peer says something about a channel. We also introduce a behavior change: we disconnect after a failed open. We might want to modify this later, but we it's a side-effect of openingd not holding onto idle connections. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -87,6 +87,9 @@ struct funding_channel {
|
||||
/* Whether or not this is in the middle of getting funded */
|
||||
bool inflight;
|
||||
|
||||
/* Initial openingd_funder_start msg */
|
||||
const u8 *open_msg;
|
||||
|
||||
/* Any commands trying to cancel us. */
|
||||
struct command **cancels;
|
||||
|
||||
@@ -95,8 +98,7 @@ struct funding_channel {
|
||||
struct peer_fd *peer_fd;
|
||||
};
|
||||
|
||||
struct uncommitted_channel *
|
||||
new_uncommitted_channel(struct peer *peer);
|
||||
struct uncommitted_channel *new_uncommitted_channel(struct peer *peer);
|
||||
|
||||
void opend_channel_errmsg(struct uncommitted_channel *uc,
|
||||
struct peer_fd *peer_fd,
|
||||
|
||||
Reference in New Issue
Block a user