You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.7 KiB
49 lines
1.7 KiB
8 years ago
|
# These are fatal.
|
||
|
gossipstatus_init_failed,0x8000
|
||
|
gossipstatus_bad_new_peer_request,0x8001
|
||
|
gossipstatus_bad_release_request,0x8002
|
||
|
gossipstatus_bad_request,0x8003
|
||
|
gossipstatus_fdpass_failed,0x8004
|
||
|
|
||
|
# Peers can give a bad message, we close their fd, but no harm done.
|
||
8 years ago
|
gossipstatus_peer_bad_msg,1000
|
||
8 years ago
|
gossipstatus_peer_bad_msg,0,unique_id,8
|
||
|
gossipstatus_peer_bad_msg,8,len,2
|
||
|
gossipstatus_peer_bad_msg,10,err,len,u8
|
||
|
|
||
8 years ago
|
#include <lightningd/cryptomsg.h>
|
||
|
|
||
|
# These take an fd, but have no response
|
||
|
# (if it is to move onto a channel, we get a status msg).
|
||
|
gossipctl_new_peer,1
|
||
|
gossipctl_new_peer,0,unique_id,8
|
||
|
gossipctl_new_peer,8,crypto_state,144,struct crypto_state
|
||
|
|
||
|
# Tell it to release a peer which has initialized.
|
||
|
gossipctl_release_peer,2
|
||
|
gossipctl_release_peer,0,unique_id,8
|
||
|
|
||
|
# This releases the peer and returns the cryptostate (followed by fd)
|
||
|
gossipctl_release_peer_reply,102
|
||
|
gossipctl_release_peer_reply,0,unique_id,8
|
||
|
gossipctl_release_peer_reply,8,crypto_state,144,struct crypto_state
|
||
|
|
||
8 years ago
|
# This is where we save a peer's features.
|
||
|
#gossipstatus_peer_features,1
|
||
|
#gossipstatus_peer_features,0,unique_id,8
|
||
|
#gossipstatus_peer_features,8,gflen,2
|
||
|
#gossipstatus_peer_features,10,globalfeatures,gflen
|
||
|
#gossipstatus_peer_features,10+gflen,lflen,2
|
||
|
#gossipstatus_peer_features,12+gflen,localfeatures,lflen
|
||
|
|
||
|
# Peer init handshake complete (now you can release_peer if you want)
|
||
8 years ago
|
gossipstatus_peer_ready,3
|
||
8 years ago
|
gossipstatus_peer_ready,0,unique_id,8
|
||
|
|
||
|
# Peer can send non-gossip packet (usually an open_channel) (followed by fd)
|
||
8 years ago
|
gossipstatus_peer_nongossip,4
|
||
8 years ago
|
gossipstatus_peer_nongossip,0,unique_id,8
|
||
|
gossipstatus_peer_nongossip,10,crypto_state,144,struct crypto_state
|
||
|
gossipstatus_peer_nongossip,154,len,2
|
||
|
gossipstatus_peer_nongossip,156,msg,len,u8
|