connectd: remove reconnection logic.

We don't have to put aside a peer which is reconnecting and wait for
lightningd to remove the old peer, we can now simply free the old
and add the new.

Fixes: #5240
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2022-07-16 14:19:30 +09:30
committed by neil saitug
parent 7b0c11efb4
commit 9b6c97437e
5 changed files with 6 additions and 114 deletions

View File

@@ -137,8 +137,7 @@ static struct io_plan *peer_init_received(struct io_conn *conn,
remote_addr,
&peer->cs,
take(features),
peer->incoming,
false);
peer->incoming);
}
static struct io_plan *peer_init_hdr_received(struct io_conn *conn,