mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 09:34:24 +01:00
I tried to just do gossipd, but it was uncontainable, so this ended up being a complete sweep. We didn't get much space saving in gossipd, even though we should save 24 bytes per node. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
623 B
623 B
| 1 | #include <common/wireaddr.h> |
|---|---|
| 2 | # Communication between gossipd and connectd. |
| 3 | gossip_new_peer,4000 |
| 4 | gossip_new_peer,,id,struct node_id |
| 5 | # Did we negotiate LOCAL_GOSSIP_QUERIES? |
| 6 | gossip_new_peer,,gossip_queries_feature,bool |
| 7 | # Did they offer LOCAL_INITIAL_ROUTING_SYNC? |
| 8 | gossip_new_peer,,initial_routing_sync,bool |
| 9 | # if success: + fd. |
| 10 | gossip_new_peer_reply,4100 |
| 11 | gossip_new_peer_reply,,success,bool |
| 12 | # Connectd asks gossipd for any known addresses for that node. |
| 13 | gossip_get_addrs,4001 |
| 14 | gossip_get_addrs,,id,struct node_id |
| 15 | gossip_get_addrs_reply,4101 |
| 16 | gossip_get_addrs_reply,,num,u16 |
| 17 | gossip_get_addrs_reply,,addrs,num*struct wireaddr |