core-lightning/lightningd/gossip/gossip_wire.csv
Rusty Russell 5dc8cb12be lightningd/gossip: convert to subd.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-03-11 07:19:40 +10:30

1.7 KiB

1# These are fatal.
2gossipstatus_init_failed,0x8000
3gossipstatus_bad_new_peer_request,0x8001
4gossipstatus_bad_release_request,0x8002
5gossipstatus_bad_request,0x8003
6gossipstatus_fdpass_failed,0x8004
7# Peers can give a bad message, we close their fd, but no harm done.
8gossipstatus_peer_bad_msg,1000
9gossipstatus_peer_bad_msg,0,unique_id,8
10gossipstatus_peer_bad_msg,8,len,2
11gossipstatus_peer_bad_msg,10,err,len,u8
12#include <lightningd/cryptomsg.h>
13# These take an fd, but have no response
14# (if it is to move onto a channel, we get a status msg).
15gossipctl_new_peer,1
16gossipctl_new_peer,0,unique_id,8
17gossipctl_new_peer,8,crypto_state,144,struct crypto_state
18# Tell it to release a peer which has initialized.
19gossipctl_release_peer,2
20gossipctl_release_peer,0,unique_id,8
21# This releases the peer and returns the cryptostate (followed by fd)
22gossipctl_release_peer_reply,102
23gossipctl_release_peer_reply,0,unique_id,8
24gossipctl_release_peer_reply,8,crypto_state,144,struct crypto_state
25# This is where we save a peer's features.
26#gossipstatus_peer_features,1
27#gossipstatus_peer_features,0,unique_id,8
28#gossipstatus_peer_features,8,gflen,2
29#gossipstatus_peer_features,10,globalfeatures,gflen
30#gossipstatus_peer_features,10+gflen,lflen,2
31#gossipstatus_peer_features,12+gflen,localfeatures,lflen
32# Peer init handshake complete (now you can release_peer if you want)
33gossipstatus_peer_ready,3
34gossipstatus_peer_ready,0,unique_id,8
35# Peer can send non-gossip packet (usually an open_channel) (followed by fd)
36gossipstatus_peer_nongossip,4
37gossipstatus_peer_nongossip,0,unique_id,8
38gossipstatus_peer_nongossip,10,crypto_state,144,struct crypto_state
39gossipstatus_peer_nongossip,154,len,2
40gossipstatus_peer_nongossip,156,msg,len,u8