mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 09:34:24 +01:00
798 B
798 B
| 1 | #include <common/per_peer_state.h> |
|---|---|
| 2 | #include <common/wireaddr.h> |
| 3 | # Communication between gossipd and connectd. |
| 4 | msgtype,gossip_new_peer,4000 |
| 5 | msgdata,gossip_new_peer,id,node_id, |
| 6 | # Did we negotiate LOCAL_GOSSIP_QUERIES? |
| 7 | msgdata,gossip_new_peer,gossip_queries_feature,bool, |
| 8 | # Did they offer LOCAL_INITIAL_ROUTING_SYNC? |
| 9 | msgdata,gossip_new_peer,initial_routing_sync,bool, |
| 10 | # if success: + gossip fd and gossip_store fd |
| 11 | msgtype,gossip_new_peer_reply,4100 |
| 12 | msgdata,gossip_new_peer_reply,success,bool, |
| 13 | msgdata,gossip_new_peer_reply,gs,?gossip_state, |
| 14 | # Connectd asks gossipd for any known addresses for that node. |
| 15 | msgtype,gossip_get_addrs,4001 |
| 16 | msgdata,gossip_get_addrs,id,node_id, |
| 17 | msgtype,gossip_get_addrs_reply,4101 |
| 18 | msgdata,gossip_get_addrs_reply,num,u16, |
| 19 | msgdata,gossip_get_addrs_reply,addrs,wireaddr,num |