mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-20 02:27:51 +01:00
38d2899fbb
Encapsulating the peer state was a win for lightningd; not surprisingly, it's even more of a win for the other daemons, especially as we want to add a little gossip information. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
1.6 KiB
1.6 KiB
1 | #include <common/cryptomsg.h> |
---|---|
2 | #include <common/htlc_wire.h> |
3 | #include <common/per_peer_state.h> |
4 | # Begin! (passes peer fd, gossipd-client fd) |
5 | closing_init,2001 |
6 | closing_init,,pps,struct per_peer_state |
7 | closing_init,,funding_txid,struct bitcoin_txid |
8 | closing_init,,funding_txout,u16 |
9 | closing_init,,funding_satoshi,struct amount_sat |
10 | closing_init,,local_fundingkey,struct pubkey |
11 | closing_init,,remote_fundingkey,struct pubkey |
12 | closing_init,,funder,enum side |
13 | closing_init,,local_sat,struct amount_sat |
14 | closing_init,,remote_sat,struct amount_sat |
15 | closing_init,,our_dust_limit,struct amount_sat |
16 | closing_init,,min_fee_satoshi,struct amount_sat |
17 | closing_init,,fee_limit_satoshi,struct amount_sat |
18 | closing_init,,initial_fee_satoshi,struct amount_sat |
19 | closing_init,,local_scriptpubkey_len,u16 |
20 | closing_init,,local_scriptpubkey,local_scriptpubkey_len*u8 |
21 | closing_init,,remote_scriptpubkey_len,u16 |
22 | closing_init,,remote_scriptpubkey,remote_scriptpubkey_len*u8 |
23 | closing_init,,reconnected,bool |
24 | closing_init,,next_index_local,u64 |
25 | closing_init,,next_index_remote,u64 |
26 | closing_init,,revocations_received,u64 |
27 | closing_init,,channel_reestablish_len,u16 |
28 | closing_init,,channel_reestablish,channel_reestablish_len*u8 |
29 | closing_init,,final_scriptpubkey_len,u16 |
30 | closing_init,,final_scriptpubkey,final_scriptpubkey_len*u8 |
31 | closing_init,,last_remote_secret,struct secret |
32 | # We received an offer, save signature. |
33 | closing_received_signature,2002 |
34 | closing_received_signature,,signature,struct bitcoin_signature |
35 | closing_received_signature,,tx,struct bitcoin_tx |
36 | closing_received_signature_reply,2102 |
37 | closing_received_signature_reply,,closing_txid,struct bitcoin_txid |
38 | # Negotiations complete, we're exiting. |
39 | closing_complete,2004 |