core-lightning/closingd/closing_wire.csv
Rusty Russell ef28b6112c status: use common status codes for all the failures.
This change is really to allow us to have a --dev-fail-on-subdaemon-fail option
so we can handle failures from subdaemons generically.

It also neatens handling so we can have an explicit callback for "peer
did something wrong" (which matters if we want to close the channel in
that case).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-09-12 23:00:53 +02:00

1.2 KiB

1#include <common/cryptomsg.h>
2#include <common/htlc_wire.h>
3# Begin! (passes peer fd, gossipd-client fd)
4closing_init,1
5closing_init,,crypto_state,struct crypto_state
6closing_init,,seed,struct privkey
7closing_init,,funding_txid,struct sha256_double
8closing_init,,funding_txout,u16
9closing_init,,funding_satoshi,u64
10closing_init,,remote_fundingkey,struct pubkey
11closing_init,,funder,enum side
12closing_init,,local_msatoshi,u64
13closing_init,,remote_msatoshi,u64
14closing_init,,our_dust_limit,u64
15closing_init,,min_fee_satoshi,u64
16closing_init,,max_fee_satoshi,u64
17closing_init,,initial_fee_satoshi,u64
18closing_init,,local_scriptpubkey_len,u16
19closing_init,,local_scriptpubkey,local_scriptpubkey_len*u8
20closing_init,,remote_scriptpubkey_len,u16
21closing_init,,remote_scriptpubkey,remote_scriptpubkey_len*u8
22closing_init,,reconnected,bool
23closing_init,,next_index_local,u64
24closing_init,,next_index_remote,u64
25closing_init,,revocations_received,u64
26# We received an offer, save signature.
27closing_received_signature,2
28closing_received_signature,,signature,secp256k1_ecdsa_signature
29closing_received_signature,,tx,struct bitcoin_tx
30closing_received_signature_reply,102
31# Negotiations complete, we're exiting.
32closing_complete,4