gossip: Moving to intmap-based broadcast for the legacy daemon

Moved the broadcast functionality to broadcast.[ch]. So far this
includes only the enqueuing side of broadcasts, the dequeuing and
actual push to the peer is daemon dependent. This also adds the
broadcast_state to the routing_state and the last broadcast index to
the peer for the legacy daemon.
This commit is contained in:
Christian Decker
2017-01-26 22:47:52 +01:00
committed by Rusty Russell
parent 3aa45a6d0b
commit 76e2c980e1
10 changed files with 121 additions and 70 deletions

View File

@@ -19,6 +19,7 @@ DAEMON_LIB_OBJS := $(DAEMON_LIB_SRC:.c=.o)
DAEMON_SRC := \
daemon/bitcoind.c \
daemon/broadcast.c \
daemon/chaintopology.c \
daemon/channel.c \
daemon/commit_tx.c \
@@ -66,6 +67,7 @@ DAEMON_GEN_HEADERS := \
DAEMON_HEADERS := \
daemon/bitcoind.h \
daemon/broadcast.h \
daemon/chaintopology.h \
daemon/channel.h \
daemon/commit_tx.h \