daemon: pay command.

This is the command an actual user would use: it figures out the fee
and route, and pays it if it can.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2016-06-30 09:08:11 +09:30
parent 21a29d9b4d
commit 69a8ea2ad9
9 changed files with 262 additions and 28 deletions

View File

@@ -25,9 +25,10 @@ DAEMON_SRC := \
daemon/netaddr.c \
daemon/onion.c \
daemon/opt_time.c \
daemon/peer.c \
daemon/packets.c \
daemon/pay.c \
daemon/payment.c \
daemon/peer.c \
daemon/routing.c \
daemon/secrets.c \
daemon/timeout.c \
@@ -60,6 +61,7 @@ DAEMON_HEADERS := \
daemon/netaddr.h \
daemon/onion.h \
daemon/opt_time.h \
daemon/pay.h \
daemon/payment.h \
daemon/peer.h \
daemon/pseudorand.h \