daemon: open-code handling of on-chain states.

Once we see an on-chain tx, we ignore the state machine and handle it
as per the onchain.md draft.  This specifies a *resolution* for each
output, and we're done when they're irrevocable.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2016-05-04 16:14:22 +09:30
parent f6b36b9be3
commit f29a6043d2
6 changed files with 572 additions and 40 deletions

View File

@@ -62,6 +62,7 @@ CCAN_OBJS := \
ccan-isaac.o \
ccan-isaac64.o \
ccan-list.o \
ccan-mem.o \
ccan-noerr.o \
ccan-opt-helpers.o \
ccan-opt-parse.o \
@@ -378,3 +379,5 @@ ccan-io-poll.o: $(CCANDIR)/ccan/io/poll.c
$(CC) $(CFLAGS) -c -o $@ $<
ccan-pipecmd.o: $(CCANDIR)/ccan/pipecmd/pipecmd.c
$(CC) $(CFLAGS) -c -o $@ $<
ccan-mem.o: $(CCANDIR)/ccan/mem/mem.c
$(CC) $(CFLAGS) -c -o $@ $<