core-lightning/lightningd/closing/closing_wire.csv
Rusty Russell 0c5e238a48 lightningd: handle reconnect during shutdown and closing.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-07-12 10:21:16 +09:30

1.8 KiB

1# Shouldn't happen
2closing_bad_command,0x8000
3# Also shouldn't happen
4closing_gossip_failed,0x8001
5closing_internal_error,0x8003
6# These are due to peer.
7closing_peer_write_failed,0x8010
8closing_peer_read_failed,0x8011
9closing_peer_bad_message,0x8012
10closing_peer_bad_message,,len,u16
11closing_peer_bad_message,,msg,len*u8
12closing_negotiation_error,0x8013
13closing_negotiation_error,,len,u16
14closing_negotiation_error,,msg,len*u8
15#include <lightningd/cryptomsg.h>
16#include <lightningd/htlc_wire.h>
17# Begin! (passes peer fd, gossipd-client fd)
18closing_init,1
19closing_init,,crypto_state,struct crypto_state
20closing_init,,seed,struct privkey
21closing_init,,funding_txid,struct sha256_double
22closing_init,,funding_txout,u16
23closing_init,,funding_satoshi,u64
24closing_init,,remote_fundingkey,struct pubkey
25closing_init,,funder,enum side
26closing_init,,local_msatoshi,u64
27closing_init,,remote_msatoshi,u64
28closing_init,,our_dust_limit,u64
29closing_init,,min_fee_satoshi,u64
30closing_init,,max_fee_satoshi,u64
31closing_init,,initial_fee_satoshi,u64
32closing_init,,local_scriptpubkey_len,u16
33closing_init,,local_scriptpubkey,local_scriptpubkey_len*u8
34closing_init,,remote_scriptpubkey_len,u16
35closing_init,,remote_scriptpubkey,remote_scriptpubkey_len*u8
36closing_init,,reconnected,bool
37closing_init,,next_index_local,u64
38closing_init,,next_index_remote,u64
39closing_init,,revocations_received,u64
40# We received an offer, save signature.
41closing_received_signature,2
42closing_received_signature,,fee_satoshi,u64
43closing_received_signature,,signature,secp256k1_ecdsa_signature
44closing_received_signature_reply,102
45# We sent an offer, save it in case we crash.
46closing_offered_signature,3
47closing_offered_signature,,fee_satoshi,u64
48closing_offered_signature,,signature,secp256k1_ecdsa_signature
49closing_offered_signature_reply,103
50# Negotiations complete, we're exiting.
51closing_complete,4