core-lightning/lightningd/handshake/handshake_wire.csv
Rusty Russell 662dfef436 lightningd/gossip: Move INIT message handling to handshake daemon.
We need to do this on every connection, whether reconnecting or not,
so it makes sense for the handshake daemon to handle it and return
the feature fields.

Longer term I'm considering having the handshake daemon handle the
listening and connecting, and simply hand the fds back once the peers
are ready.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-05-25 14:24:47 +09:30

1.6 KiB

1#include <lightningd/cryptomsg.h>
2handshake_bad_command,0x8000
3initr_act1_bad_ecdh_for_ss,0x8011
4initr_act1_write_failed,0x8012
5initr_act2_read_failed,0x8013
6initr_act2_bad_version,0x8014
7initr_act2_bad_pubkey,0x8015
8initr_act2_bad_ecdh_for_ss,0x8016
9initr_act2_bad_tag,0x8017
10initr_act3_bad_hsm_ecdh,0x8018
11initr_act3_write_failed,0x8019
12respr_act1_read_failed,0x801A
13respr_act1_bad_version,0x801B
14respr_act1_bad_pubkey,0x801C
15respr_act1_bad_hsm_ecdh,0x801D
16respr_act1_bad_tag,0x801E
17respr_act2_bad_ecdh_for_ss,0x801F
18respr_act2_write_failed,0x8020
19respr_act3_read_failed,0x8021
20respr_act3_bad_version,0x8022
21respr_act3_bad_ciphertext,0x8023
22respr_act3_bad_pubkey,0x8024
23respr_act3_bad_ecdh_for_ss,0x8025
24respr_act3_bad_tag,0x8026
25initmsg_write_failed,0x8030
26initmsg_read_failed,0x8031
27# FIXME: This is probably too finegrained.
28initr_act_one,1001
29initr_act_two,1002
30initr_act_three,1003
31respr_act_one,1011
32respr_act_two,1012
33respr_act_three,1013
34success,0
35handshake_responder,1
36handshake_responder,1,my_id,33
37handshake_responder_reply,101
38handshake_responder_reply,0,initiator_id,33
39handshake_responder_reply,33,cs,struct crypto_state
40handshake_responder_reply,0,gflen,2
41handshake_responder_reply,0,globalfeatures,gflen
42handshake_responder_reply,0,lflen,2
43handshake_responder_reply,0,localfeatures,lflen
44handshake_initiator,2
45handshake_initiator,0,my_id,33
46handshake_initiator,33,responder_id,33
47handshake_initiator_reply,102
48handshake_initiator_reply,0,cs,struct crypto_state
49handshake_initiator_reply,0,gflen,2
50handshake_initiator_reply,0,globalfeatures,gflen
51handshake_initiator_reply,0,lflen,2
52handshake_initiator_reply,0,localfeatures,lflen