mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-04 06:44:24 +01:00
lightningd: provide peer address for reconnect if connect fails.
It usually works out due to other reconnections, but I noticed this diagnosing another test. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
neil saitug
parent
c57a5a0a06
commit
e15e55190b
@@ -20,7 +20,9 @@ void try_reconnect(const tal_t *ctx,
|
||||
void connect_succeeded(struct lightningd *ld, const struct peer *peer,
|
||||
bool incoming,
|
||||
const struct wireaddr_internal *addr);
|
||||
void connect_failed_disconnect(struct lightningd *ld, const struct node_id *id);
|
||||
void connect_failed_disconnect(struct lightningd *ld,
|
||||
const struct node_id *id,
|
||||
const struct wireaddr_internal *addr);
|
||||
|
||||
/* Disconnect a peer (if no subds want to talk any more) */
|
||||
void maybe_disconnect_peer(struct lightningd *ld, struct peer *peer);
|
||||
|
||||
Reference in New Issue
Block a user