mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-09 09:04:25 +01:00
cleanup: remove unneeded includes in header files.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#include <ccan/json_out/json_out.h>
|
||||
#include <ccan/tal/str/str.h>
|
||||
#include <ccan/time/time.h>
|
||||
#include <common/json_tok.h>
|
||||
#include <common/utils.h>
|
||||
#include <inttypes.h>
|
||||
#include <plugins/libplugin.h>
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#include <ccan/tal/path/path.h>
|
||||
#include <ccan/tal/str/str.h>
|
||||
#include <common/json_helpers.h>
|
||||
#include <common/json_tok.h>
|
||||
#include <common/memleak.h>
|
||||
#include <common/utils.h>
|
||||
#include <errno.h>
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#include <common/dijkstra.h>
|
||||
#include <common/gossmap.h>
|
||||
#include <common/json_stream.h>
|
||||
#include <common/json_tok.h>
|
||||
#include <common/memleak.h>
|
||||
#include <common/overflows.h>
|
||||
#include <common/route.h>
|
||||
@@ -23,6 +24,7 @@
|
||||
#include <inttypes.h>
|
||||
#include <plugins/libplugin.h>
|
||||
#include <secp256k1_schnorrsig.h>
|
||||
#include <sodium.h>
|
||||
|
||||
static struct gossmap *global_gossmap;
|
||||
static struct node_id local_id;
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#include <common/json.h>
|
||||
#include <common/json_helpers.h>
|
||||
#include <common/json_stream.h>
|
||||
#include <common/json_tok.h>
|
||||
#include <common/lease_rates.h>
|
||||
#include <common/memleak.h>
|
||||
#include <common/node_id.h>
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
#define LIGHTNING_PLUGINS_FUNDER_POLICY_H
|
||||
#include "config.h"
|
||||
#include <common/amount.h>
|
||||
#include <wire/peer_wire.h>
|
||||
|
||||
struct lease_rates;
|
||||
struct node_id;
|
||||
|
||||
@@ -4,9 +4,11 @@
|
||||
#include <ccan/cast/cast.h>
|
||||
#include <ccan/tal/str/str.h>
|
||||
#include <common/gossmap.h>
|
||||
#include <common/json_tok.h>
|
||||
#include <common/type_to_string.h>
|
||||
#include <plugins/libplugin-pay.h>
|
||||
#include <plugins/libplugin.h>
|
||||
#include <sodium.h>
|
||||
#include <wire/onion_wire.h>
|
||||
|
||||
#define PREIMAGE_TLV_TYPE 5482373484
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#include <bitcoin/chainparams.h>
|
||||
#include <bitcoin/privkey.h>
|
||||
#include <ccan/err/err.h>
|
||||
#include <ccan/io/io.h>
|
||||
#include <ccan/json_out/json_out.h>
|
||||
|
||||
@@ -14,8 +14,10 @@
|
||||
#include <common/json_command.h>
|
||||
#include <common/json_helpers.h>
|
||||
#include <common/jsonrpc_errors.h>
|
||||
#include <common/node_id.h>
|
||||
#include <common/param.h>
|
||||
#include <common/status_levels.h>
|
||||
#include <common/utils.h>
|
||||
|
||||
struct json_out;
|
||||
struct plugin;
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
#include <common/bolt12_merkle.h>
|
||||
#include <common/iso4217.h>
|
||||
#include <common/json_stream.h>
|
||||
#include <common/utils.h>
|
||||
#include <plugins/libplugin.h>
|
||||
#include <plugins/offers.h>
|
||||
#include <plugins/offers_inv_hook.h>
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#include <bitcoin/preimage.h>
|
||||
#include <ccan/cast/cast.h>
|
||||
#include <ccan/mem/mem.h>
|
||||
#include <ccan/tal/str/str.h>
|
||||
#include <common/bech32_util.h>
|
||||
#include <common/bolt12.h>
|
||||
#include <common/bolt12_merkle.h>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include <bitcoin/chainparams.h>
|
||||
#include <bitcoin/preimage.h>
|
||||
#include <ccan/cast/cast.h>
|
||||
#include <ccan/tal/str/str.h>
|
||||
#include <common/bech32_util.h>
|
||||
#include <common/bolt12.h>
|
||||
#include <common/bolt12_merkle.h>
|
||||
@@ -12,6 +13,7 @@
|
||||
#include <plugins/offers.h>
|
||||
#include <plugins/offers_invreq_hook.h>
|
||||
#include <secp256k1_schnorrsig.h>
|
||||
#include <sodium.h>
|
||||
|
||||
/* We need to keep the reply path around so we can reply with invoice */
|
||||
struct invreq {
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
#include <bitcoin/chainparams.h>
|
||||
#include <ccan/array_size/array_size.h>
|
||||
#include <ccan/tal/str/str.h>
|
||||
#include <common/bolt12.h>
|
||||
#include <common/iso4217.h>
|
||||
#include <common/json_stream.h>
|
||||
#include <common/json_tok.h>
|
||||
#include <common/overflows.h>
|
||||
#include <plugins/offers_offer.h>
|
||||
#include <wire/onion_wire.h>
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
#include <common/gossip_constants.h>
|
||||
#include <common/gossmap.h>
|
||||
#include <common/json_stream.h>
|
||||
#include <common/json_tok.h>
|
||||
#include <common/pseudorand.h>
|
||||
#include <common/type_to_string.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#include <ccan/compiler/compiler.h>
|
||||
#include <common/json.h>
|
||||
#include <common/json_stream.h>
|
||||
#include <common/json_tok.h>
|
||||
#include <plugins/spender/fundchannel.h>
|
||||
|
||||
static struct command_result *
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
#include <ccan/crypto/sha256/sha256.h>
|
||||
#include <ccan/json_out/json_out.h>
|
||||
#include <ccan/str/str.h>
|
||||
#include <ccan/tal/str/str.h>
|
||||
#include <ccan/take/take.h>
|
||||
#include <common/addr.h>
|
||||
#include <common/amount.h>
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#include <ccan/array_size/array_size.h>
|
||||
#include <ccan/json_out/json_out.h>
|
||||
#include <ccan/take/take.h>
|
||||
#include <ccan/tal/str/str.h>
|
||||
#include <common/amount.h>
|
||||
#include <common/json.h>
|
||||
#include <common/json_helpers.h>
|
||||
@@ -14,6 +15,7 @@
|
||||
#include <plugins/spender/multiwithdraw.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdlib.h>
|
||||
#include <wally_psbt.h>
|
||||
|
||||
/*-----------------------------------------------------------------------------
|
||||
Command Access
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
#include <ccan/ccan/mem/mem.h>
|
||||
#include <ccan/ccan/tal/str/str.h>
|
||||
#include <common/json_stream.h>
|
||||
#include <common/lease_rates.h>
|
||||
#include <common/psbt_open.h>
|
||||
#include <common/type_to_string.h>
|
||||
#include <common/utils.h>
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include <common/dijkstra.h>
|
||||
#include <common/gossmap.h>
|
||||
#include <common/json_stream.h>
|
||||
#include <common/json_tok.h>
|
||||
#include <common/memleak.h>
|
||||
#include <common/pseudorand.h>
|
||||
#include <common/route.h>
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
#include <common/type_to_string.h>
|
||||
#include <common/utils.h>
|
||||
#include <plugins/libplugin.h>
|
||||
#include <wally_psbt.h>
|
||||
|
||||
struct tx_output {
|
||||
struct amount_sat amount;
|
||||
|
||||
Reference in New Issue
Block a user