core-lightning/daemon
Rusty Russell f8fa8c8dff peer: handle case correctly where they can't handle fees.
When they propose an HTLC to us, they need to be able to cover both it,
and the associated fees.  When it gets acked and applied to them, however,
they may no longer be able to afford the fees; this is OK and expected.

So add a flag to say whether they can dig into fees or not: without
this patch the code calls fatal() on the next patch which tests it.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2016-08-31 16:06:32 +09:30
..
jsmn@bd9bd55c3a daemon/jsmn: Add submodule for jsmn. 2016-01-22 06:37:13 +10:30
test pay: split into getroute and sendpay 2016-08-31 16:06:08 +09:30
.gitignore daemon: first code. 2016-01-22 06:41:47 +10:30
bitcoind.c bitcoind: keep running fee estimate. 2016-08-18 14:23:46 +09:30
bitcoind.h chaintopology: only report active chaintip. 2016-07-07 13:36:39 +09:30
chaintopology.c peer: save/load results in database. 2016-08-18 14:25:14 +09:30
chaintopology.h bitcoind: keep running fee estimate. 2016-08-18 14:23:46 +09:30
channel.c peer: handle case correctly where they can't handle fees. 2016-08-31 16:06:32 +09:30
channel.h peer: handle case correctly where they can't handle fees. 2016-08-31 16:06:32 +09:30
commit_tx.c commit_tx: more debugging. 2016-08-18 14:25:13 +09:30
commit_tx.h protocol: no signature in update_commit if receiver has no outputs. 2016-08-18 14:25:13 +09:30
configdir.c daemon: configuration directory (default ~/.lightning). 2016-01-22 06:41:48 +10:30
configdir.h daemon: configuration directory (default ~/.lightning). 2016-01-22 06:41:48 +10:30
controlled_time.c daemon: test restarting. 2016-08-18 14:25:14 +09:30
controlled_time.h daemon: test restarting. 2016-08-18 14:25:14 +09:30
cryptopkt.c log: add easy way to log hex blobs. 2016-08-31 16:06:32 +09:30
cryptopkt.h peer: do logging before crypto is on. 2016-08-31 16:06:31 +09:30
db.c daemon: remove three fixed FIXMEs. 2016-08-31 16:06:31 +09:30
db.h htlc: save fail message in HTLC. 2016-08-31 14:51:41 +09:30
dns.c dns: don't allow non-stream sockets. 2016-01-22 06:41:49 +10:30
dns.h daemon: rename 'state' to 'dstate' everywhere. 2016-01-22 06:41:49 +10:30
failure.c htlc: save fail message in HTLC. 2016-08-31 14:51:41 +09:30
failure.h htlc: save fail message in HTLC. 2016-08-31 14:51:41 +09:30
feechange.c daemon: handle feechange requests. 2016-08-26 15:31:19 +09:30
feechange.h daemon: handle feechange requests. 2016-08-26 15:31:19 +09:30
feechange_state.h daemon: handle feechange requests. 2016-08-26 15:31:19 +09:30
htlc.c peer: save/load results in database. 2016-08-18 14:25:14 +09:30
htlc.h htlc: save fail message in HTLC. 2016-08-31 14:51:41 +09:30
htlc_state.h db.c: database API. 2016-08-18 14:25:13 +09:30
json.c pay: split into getroute and sendpay 2016-08-31 16:06:08 +09:30
json.h pay: split into getroute and sendpay 2016-08-31 16:06:08 +09:30
jsonrpc.c pay: split into getroute and sendpay 2016-08-31 16:06:08 +09:30
jsonrpc.h pay: split into getroute and sendpay 2016-08-31 16:06:08 +09:30
lightning-cli.c pay: split into getroute and sendpay 2016-08-31 16:06:08 +09:30
lightningd.c pay: make interface idempotent. 2016-08-31 16:04:59 +09:30
lightningd.h pay: make interface idempotent. 2016-08-31 16:04:59 +09:30
log.c log: add channel_state logging ability. 2016-08-31 16:06:32 +09:30
log.h log: add channel_state logging ability. 2016-08-31 16:06:32 +09:30
Makefile htlc: save fail message in HTLC. 2016-08-31 14:51:41 +09:30
netaddr.c peer: keep addresses separately from peers. 2016-08-18 14:25:14 +09:30
netaddr.h peer: keep addresses separately from peers. 2016-08-18 14:25:14 +09:30
onion.c pay: split into getroute and sendpay 2016-08-31 16:06:08 +09:30
onion.h pay: split into getroute and sendpay 2016-08-31 16:06:08 +09:30
opt_time.c daemon: test restarting. 2016-08-18 14:25:14 +09:30
opt_time.h daemon: test restarting. 2016-08-18 14:25:14 +09:30
output_to_htlc.c daemon/output_to_htlc: routines to map outputs for HTLCs for a given commit_num. 2016-08-18 14:23:45 +09:30
output_to_htlc.h daemon/output_to_htlc: routines to map outputs for HTLCs for a given commit_num. 2016-08-18 14:23:45 +09:30
packets.c htlc: save fail message in HTLC. 2016-08-31 14:51:41 +09:30
packets.h daemon: accept feechange packets. 2016-08-26 15:33:30 +09:30
pay.c pay: split into getroute and sendpay 2016-08-31 16:06:08 +09:30
pay.h pay: make interface idempotent. 2016-08-31 16:04:59 +09:30
payment.c daemon: payment infrastructure. 2016-07-01 11:59:15 +09:30
payment.h daemon: payment infrastructure. 2016-07-01 11:59:15 +09:30
peer.c peer: handle case correctly where they can't handle fees. 2016-08-31 16:06:32 +09:30
peer.h peer: do logging before crypto is on. 2016-08-31 16:06:31 +09:30
pseudorand.c daemon: use siphash for hashes. 2016-07-01 12:00:17 +09:30
pseudorand.h daemon: use siphash for hashes. 2016-07-01 12:00:17 +09:30
routing.c routing: Fix for single hop routes segfaulting. 2016-08-26 15:39:35 +09:30
routing.h daemon: --add-route option. 2016-08-18 14:25:14 +09:30
secrets.c db.c: database API. 2016-08-18 14:25:13 +09:30
secrets.h db.c: database API. 2016-08-18 14:25:13 +09:30
timeout.c timeout: make all timers one-shot. 2016-05-10 06:26:09 +09:30
timeout.h timeout: make all timers one-shot. 2016-05-10 06:26:09 +09:30
wallet.c peer: save/load results in database. 2016-08-18 14:25:14 +09:30
wallet.h db.c: database API. 2016-08-18 14:25:13 +09:30
watch.c watch: make it easier for them to self-delete. 2016-07-01 12:00:17 +09:30
watch.h watch: make it easier for them to self-delete. 2016-07-01 12:00:17 +09:30