connectd: --dev-handshake-no-reply so we can test pending connections.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2024-05-14 14:02:37 +09:30
parent a9b7402910
commit 155311b053
8 changed files with 21 additions and 3 deletions

View File

@@ -295,5 +295,9 @@ struct io_plan *peer_exchange_initmsg(struct io_conn *conn,
break;
}
/* Don't converse if we said "no reply" */
if (daemon->dev_handshake_no_reply)
return io_wait(conn, peer->msg, io_never, NULL);
return io_write(conn, peer->msg, tal_bytelen(peer->msg), next, peer);
}