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