Move pkt.c into test-cli.

We use cryptopkt for normal cases.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2016-01-22 06:41:45 +10:30
parent b312114719
commit 906a5e4a32
5 changed files with 3 additions and 6 deletions

View File

@ -58,12 +58,11 @@ CORE_SRC := \
lightning.pb-c.c \
opt_bits.c \
permute_tx.c \
pkt.c \
protobuf_convert.c \
version.c
CORE_OBJS := $(CORE_SRC:.c=.o)
TEST_CLI_SRC := test-cli/gather_updates.c
TEST_CLI_SRC := test-cli/gather_updates.c test-cli/pkt.c
TEST_CLI_OBJS := $(TEST_CLI_SRC:.c=.o)
CCAN_OBJS := \
@ -143,7 +142,8 @@ CCAN_HEADERS := \
$(CCANDIR)/ccan/time/time.h \
$(CCANDIR)/ccan/typesafe_cb/typesafe_cb.h
TEST_CLI_HEADERS := test-cli/gather_updates.h
TEST_CLI_HEADERS := test-cli/gather_updates.h \
test-cli/pkt.h
BITCOIN_HEADERS := bitcoin/address.h \
bitcoin/base58.h \
@ -162,7 +162,6 @@ CORE_HEADERS := close_tx.h \
opt_bits.h \
overflows.h \
permute_tx.h \
pkt.h \
protobuf_convert.h \
state.h \
state_types.h \

View File

@ -4,7 +4,6 @@
#include "bitcoin/tx.h"
#include "close_tx.h"
#include "permute_tx.h"
#include "pkt.h"
#include "protobuf_convert.h"
struct bitcoin_tx *create_close_tx(const tal_t *ctx,

View File

@ -7,7 +7,6 @@
#include "funding.h"
#include "overflows.h"
#include "permute_tx.h"
#include "pkt.h"
#include "protobuf_convert.h"
static bool add_htlc(struct bitcoin_tx *tx, size_t n,