mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-20 02:27:51 +01:00
eab83ca79b
This is just copying most of gossipd/gossip.c into connectd/connect.c. It shares the same wire format as gossipd during transition, and changes are deliberately minimal. It also has an additional message 'connect_reconnected' which it sends to the master daemon to tell it to kill a peer; gossipd relied on closing the gossipfd to do this, but connectd doesn't maintain an fd with remote peers. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
11 lines
250 B
C
11 lines
250 B
C
#ifndef LIGHTNING_CONNECTD_CONNECT_H
|
|
#define LIGHTNING_CONNECTD_CONNECT_H
|
|
#include "config.h"
|
|
|
|
struct io_conn;
|
|
struct reaching;
|
|
|
|
struct io_plan *connection_out(struct io_conn *conn, struct reaching *reach);
|
|
|
|
#endif /* LIGHTNING_CONNECTD_CONNECT_H */
|