Each header should only include the other headers it needs to compile; `devtools/reduce-includes.sh */*.h` does this. The C files then need additional includes if they don't compile. And remove the entirely useless wire/onion_wire.h, which only serves to include wire/onion_wiregen.h. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2.0 KiB
2.0 KiB
| 1 | #include <bitcoin/tx.h> | |||||
|---|---|---|---|---|---|---|
| 2 | #include <ccan/crypto/shachain/shachain.h> | |||||
| 3 | #include <common/amount.h> | |||||
| 4 | #include <common/channel_id.h> | |||||
| 5 | #include <common/channel_type.h> | |||||
| 6 | #include <common/derive_basepoints.h> | |||||
| 7 | #include <common/htlc_wire.h> | |||||
| 8 | #include <common/node_id.h> | |||||
| 9 | #include <common/wireaddr.h> | |||||
| 10 | #include <common/utils.h> | |||||
| 11 | tlvtype | scb_tlvs | shachain | 1 | ||
| 12 | tlvdata | scb_tlvs | shachain | their_shachain | shachain | |
| 13 | tlvtype | scb_tlvs | basepoints | 3 | ||
| 14 | tlvdata | scb_tlvs | basepoints | their_basepoint | basepoints | |
| 15 | tlvtype | scb_tlvs | opener | 5 | ||
| 16 | tlvdata | scb_tlvs | opener | opener | enum side | |
| 17 | tlvtype | scb_tlvs | remote_to_self_delay | 7 | ||
| 18 | tlvdata | scb_tlvs | remote_to_self_delay | remote_to_self_delay | u16 | |
| 19 | # legacy_scb_chan stores min. info required to sweep the peer's force close. | |||||
| 20 | subtype | legacy_scb_chan | ||||
| 21 | subtypedata | legacy_scb_chan | id | u64 | ||
| 22 | subtypedata | legacy_scb_chan | cid | channel_id | ||
| 23 | subtypedata | legacy_scb_chan | node_id | node_id | ||
| 24 | subtypedata | legacy_scb_chan | unused | u8 | ||
| 25 | subtypedata | legacy_scb_chan | addr | wireaddr | ||
| 26 | subtypedata | legacy_scb_chan | funding | bitcoin_outpoint | ||
| 27 | subtypedata | legacy_scb_chan | funding_sats | amount_sat | ||
| 28 | subtypedata | legacy_scb_chan | type | channel_type | ||
| 29 | msgtype | static_chan_backup | 6135 | |||
| 30 | msgdata | static_chan_backup | version | u64 | ||
| 31 | msgdata | static_chan_backup | timestamp | u32 | ||
| 32 | msgdata | static_chan_backup | num | u16 | ||
| 33 | msgdata | static_chan_backup | channels | legacy_scb_chan | num | |
| 34 | subtype | modern_scb_chan | ||||
| 35 | subtypedata | modern_scb_chan | id | u64 | ||
| 36 | subtypedata | modern_scb_chan | cid | channel_id | ||
| 37 | subtypedata | modern_scb_chan | node_id | node_id | ||
| 38 | subtypedata | modern_scb_chan | addr | wireaddr | ||
| 39 | subtypedata | modern_scb_chan | funding | bitcoin_outpoint | ||
| 40 | subtypedata | modern_scb_chan | funding_sats | amount_sat | ||
| 41 | subtypedata | modern_scb_chan | type | channel_type | ||
| 42 | subtypedata | modern_scb_chan | len_tlv | u32 | ||
| 43 | subtypedata | modern_scb_chan | tlvs | scb_tlvs | len_tlv | |
| 44 | msgtype | static_chan_backup_with_tlvs | 6137 | |||
| 45 | msgdata | static_chan_backup_with_tlvs | version | u64 | ||
| 46 | msgdata | static_chan_backup_with_tlvs | timestamp | u32 | ||
| 47 | msgdata | static_chan_backup_with_tlvs | num | u16 | ||
| 48 | msgdata | static_chan_backup_with_tlvs | channels | modern_scb_chan | num |