mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 15:44:21 +01:00
daemon: reconnect with timeout, try from both sides.
This is dumb, since one side will never succeed. But in future when there is a method for nodes to broadcast their public address (or send their address inline to connected nodes), either side should try to connect. Importantly though, there are places which will queue packets at various times (eg. HTLC timeout), so we need to clear the queue just before re-transmitting, not when disconnecting. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -91,9 +91,6 @@ struct peer {
|
||||
/* Network connection. */
|
||||
struct io_conn *conn;
|
||||
|
||||
/* Did we connect to it? (Otherwise, they connected to us) */
|
||||
bool we_connected;
|
||||
|
||||
/* Are we connected now? (Crypto handshake completed). */
|
||||
bool connected;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user