Makefile: use completely separate spec-derived files for EXPERIMENTAL_FEATURES

This avoids overwriting the ones in git, and generally makes things neater.

We have convenience headers wire/peer_wire.h and wire/onion_wire.h to
avoid most #ifdefs: simply include those.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2020-09-08 06:36:50 +09:30
parent d8e8426b52
commit c34c055d82
58 changed files with 109 additions and 80 deletions

View File

@@ -27,7 +27,7 @@
#include <lightningd/opening_control.h>
#include <lightningd/peer_control.h>
#include <lightningd/subd.h>
#include <wire/peer_wiregen.h>
#include <wire/peer_wire.h>
#include <wire/wire_sync.h>
struct connect {

View File

@@ -33,7 +33,7 @@
#include <lightningd/ping.h>
#include <sodium/randombytes.h>
#include <string.h>
#include <wire/peer_wiregen.h>
#include <wire/peer_wire.h>
#include <wire/wire_sync.h>
static void got_txout(struct bitcoind *bitcoind,

View File

@@ -7,7 +7,7 @@
#include <common/amount.h>
#include <common/htlc_state.h>
#include <common/sphinx.h>
#include <wire/onion_wiregen.h>
#include <wire/onion_wire.h>
/* We look up HTLCs by channel & id */
struct htlc_key {

View File

@@ -7,7 +7,7 @@
#include <common/amount.h>
#include <common/pseudorand.h>
#include <common/utils.h>
#include <wire/onion_wiregen.h>
#include <wire/onion_wire.h>
struct htlc_in;
struct lightningd;

View File

@@ -1,7 +1,7 @@
#ifndef LIGHTNING_LIGHTNINGD_INVOICE_H
#define LIGHTNING_LIGHTNINGD_INVOICE_H
#include "config.h"
#include <wire/onion_wiregen.h>
#include <wire/onion_wire.h>
struct amount_msat;
struct htlc_set;

View File

@@ -17,7 +17,7 @@
#include <lightningd/pay.h>
#include <lightningd/plugin.h>
#include <wallet/wallet.h>
#include <wire/onion_wiregen.h>
#include <wire/onion_wire.h>
struct onionreply;

View File

@@ -58,7 +58,7 @@
#include <unistd.h>
#include <wally_bip32.h>
#include <wire/common_wiregen.h>
#include <wire/onion_wiregen.h>
#include <wire/onion_wire.h>
#include <wire/wire_sync.h>
struct close_command {

View File

@@ -36,7 +36,7 @@
#include <lightningd/subd.h>
#include <onchaind/onchaind_wiregen.h>
#include <wallet/wallet.h>
#include <wire/onion_wiregen.h>
#include <wire/onion_wire.h>
#include <wire/wire_sync.h>
#ifndef SUPERVERBOSE