mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-07 14:29:33 +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>
359 B
359 B
1 | # Communication between gossipd and connectd. |
---|---|
2 | gossip_new_peer,4000 |
3 | gossip_new_peer,,id,struct pubkey |
4 | # Did we negotiate LOCAL_GOSSIP_QUERIES? |
5 | gossip_new_peer,,gossip_queries_feature,bool |
6 | # Did they offer LOCAL_INITIAL_ROUTING_SYNC? |
7 | gossip_new_peer,,initial_routing_sync,bool |
8 | # if success: + fd. |
9 | gossip_new_peer_reply,4100 |
10 | gossip_new_peer_reply,,success,bool |