wire: move remaining bitcoin functions out to bitcoin/ files.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2020-05-16 10:59:05 +09:30
committed by Christian Decker
parent 197d1bcef2
commit cfb320c972
80 changed files with 434 additions and 377 deletions

View File

@@ -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)

View File

@@ -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>

View File

@@ -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>