core-lightning/lightningd/closing/closing_wire.csv
Rusty Russell e5a8a7502c lightningd/closing: subdaemon for closing negotiation.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-07-12 10:21:16 +09:30

1.7 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
36# We received an offer, save signature.
37closing_received_signature,2
38closing_received_signature,,fee_satoshi,u64
39closing_received_signature,,signature,secp256k1_ecdsa_signature
40closing_received_signature_reply,102
41# We sent an offer, save it in case we crash.
42closing_offered_signature,3
43closing_offered_signature,,fee_satoshi,u64
44closing_offered_signature,,signature,secp256k1_ecdsa_signature
45closing_offered_signature_reply,103
46# Negotiations complete, we're exiting.
47closing_complete,4