Skip to content

Commit 4a7418e

Browse files
committed
channel: object to track channel state.
This object is basically the embodyment of BOLT #2. Each HTLC already knows its own state; this moves them between states and keeps them consistent. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
1 parent ec4db39 commit 4a7418e

File tree

5 files changed

+1450
-1
lines changed

5 files changed

+1450
-1
lines changed

lightningd/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,13 @@ LIGHTNINGD_OLD_OBJS := $(LIGHTNINGD_OLD_SRC:.c=.o)
2727
LIGHTNINGD_OLD_HEADERS := $(LIGHTNINGD_OLD_SRC:.c=.h)
2828

2929
LIGHTNINGD_OLD_LIB_SRC := \
30-
daemon/htlc_state.c
30+
daemon/htlc_state.c \
31+
daemon/pseudorand.c
3132
LIGHTNINGD_OLD_LIB_OBJS := $(LIGHTNINGD_OLD_LIB_SRC:.c=.o)
3233
LIGHTNINGD_OLD_LIB_HEADERS := $(LIGHTNINGD_OLD_LIB_SRC:.c=.h)
3334

3435
LIGHTNINGD_LIB_SRC := \
36+
lightningd/channel.c \
3537
lightningd/channel_config.c \
3638
lightningd/commit_tx.c \
3739
lightningd/cryptomsg.c \

0 commit comments

Comments
 (0)