mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-05 13:34:43 +01:00
72b215f6fe
We were sending a channeld message to onchaind, which was v. confusing due to overlap. We make all the numbers distinct, which means we can also add an assert() that it's valid for that daemon, which catches such errors immediately. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
1.2 KiB
1.2 KiB
1 | #include <common/cryptomsg.h> |
---|---|
2 | #include <common/htlc_wire.h> |
3 | # Begin! (passes peer fd, gossipd-client fd) |
4 | closing_init,2001 |
5 | closing_init,,crypto_state,struct crypto_state |
6 | closing_init,,seed,struct privkey |
7 | closing_init,,funding_txid,struct sha256_double |
8 | closing_init,,funding_txout,u16 |
9 | closing_init,,funding_satoshi,u64 |
10 | closing_init,,remote_fundingkey,struct pubkey |
11 | closing_init,,funder,enum side |
12 | closing_init,,local_msatoshi,u64 |
13 | closing_init,,remote_msatoshi,u64 |
14 | closing_init,,our_dust_limit,u64 |
15 | closing_init,,min_fee_satoshi,u64 |
16 | closing_init,,max_fee_satoshi,u64 |
17 | closing_init,,initial_fee_satoshi,u64 |
18 | closing_init,,local_scriptpubkey_len,u16 |
19 | closing_init,,local_scriptpubkey,local_scriptpubkey_len*u8 |
20 | closing_init,,remote_scriptpubkey_len,u16 |
21 | closing_init,,remote_scriptpubkey,remote_scriptpubkey_len*u8 |
22 | closing_init,,reconnected,bool |
23 | closing_init,,next_index_local,u64 |
24 | closing_init,,next_index_remote,u64 |
25 | closing_init,,revocations_received,u64 |
26 | # We received an offer, save signature. |
27 | closing_received_signature,2002 |
28 | closing_received_signature,,signature,secp256k1_ecdsa_signature |
29 | closing_received_signature,,tx,struct bitcoin_tx |
30 | closing_received_signature_reply,2102 |
31 | # Negotiations complete, we're exiting. |
32 | closing_complete,2004 |