mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-07 08:04:23 +01:00
wire: move remaining bitcoin functions out to bitcoin/ files.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
197d1bcef2
commit
cfb320c972
@@ -11,7 +11,8 @@ WIRE_TEST_COMMON_OBJS := \
|
||||
|
||||
update-mocks: $(WIRE_TEST_SRC:%=update-mocks/%)
|
||||
|
||||
$(WIRE_TEST_PROGRAMS): $(WIRE_TEST_COMMON_OBJS) $(BITCOIN_OBJS)
|
||||
# run-tlvstream.c needs to reach into bitcoin/pubkey for SUPERVERBOSE
|
||||
$(WIRE_TEST_PROGRAMS): $(WIRE_TEST_COMMON_OBJS) $(filter-out bitcoin/pubkey.o,$(BITCOIN_OBJS))
|
||||
|
||||
# Test objects require source to be generated, since they include ..
|
||||
$(WIRE_TEST_OBJS): $(WIRE_GEN_SRC) $(WIRE_SRC) $(WIRE_HEADERS)
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
#include "../towire.c"
|
||||
#include "../fromwire.c"
|
||||
#include "../peer_wire.c"
|
||||
#include "bitcoin/pubkey.c"
|
||||
#include "common/amount.c"
|
||||
#include "common/channel_id.c"
|
||||
#include "common/node_id.c"
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
|
||||
@@ -4,14 +4,15 @@
|
||||
#include <stdio.h>
|
||||
#include <wally_core.h>
|
||||
|
||||
#include <common/amount.c>
|
||||
#include <common/bigsize.c>
|
||||
#include <common/node_id.c>
|
||||
|
||||
static const char *reason;
|
||||
#undef SUPERVERBOSE
|
||||
#define SUPERVERBOSE(r) do { reason = (r); } while(0)
|
||||
|
||||
#include <bitcoin/pubkey.c>
|
||||
#include <common/amount.c>
|
||||
#include <common/bigsize.c>
|
||||
#include <common/node_id.c>
|
||||
|
||||
#include <wire/gen_peer_wire.c>
|
||||
#include <wire/fromwire.c>
|
||||
#include <wire/towire.c>
|
||||
|
||||
Reference in New Issue
Block a user