rgb-cln/lightningd
Rusty Russell 1cf33eefe2 lightningd: handle case where channeld fails locally-generated HTLC.
jl777 reported a crash when we try to pay past reserve.  Fix that (and
a whole class of related bugs) and add tests.

In test_lightning.py I had to make non-async path for sendpay() non-threaded
to get the exception passed through for testing.

Closes: #236
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-08-30 11:36:37 +02:00
..
test Rename subdaemons, move them into top level. 2017-08-29 17:54:14 +02:00
.gitignore Rename subdaemons, move them into top level. 2017-08-29 17:54:14 +02:00
Makefile Rename subdaemons, move them into top level. 2017-08-29 17:54:14 +02:00
bitcoind.c common: absorb remaining files from daemon/ 2017-08-29 17:54:14 +02:00
bitcoind.h lightningd: remove lightningd_state. 2017-08-29 17:54:14 +02:00
build_utxos.c common: absorb remaining files from daemon/ 2017-08-29 17:54:14 +02:00
build_utxos.h common: move some files out of lightningd/ 2017-08-29 17:54:14 +02:00
chaintopology.c lightningd: remove lightningd_state. 2017-08-29 17:54:14 +02:00
chaintopology.h external: new subdirectory for all external libraries and submodules. 2017-08-29 17:54:14 +02:00
dev_ping.c Rename subdaemons, move them into top level. 2017-08-29 17:54:14 +02:00
dns.c lightningd: remove lightningd_state. 2017-08-29 17:54:14 +02:00
dns.h lightningd: remove lightningd_state. 2017-08-29 17:54:14 +02:00
gossip_control.c Rename subdaemons, move them into top level. 2017-08-29 17:54:14 +02:00
gossip_control.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
gossip_msg.c routing: Cleaning up old hostname and port handling 2017-05-10 12:37:44 +09:30
gossip_msg.h Rename subdaemons, move them into top level. 2017-08-29 17:54:14 +02:00
hsm_control.c Rename subdaemons, move them into top level. 2017-08-29 17:54:14 +02:00
hsm_control.h lightningd/hsm_control: use a simple fd for HSM. 2017-06-27 10:25:53 +09:30
htlc_end.c common: absorb remaining files from daemon/ 2017-08-29 17:54:14 +02:00
htlc_end.h common: move some files out of lightningd/ 2017-08-29 17:54:14 +02:00
invoice.c lightningd: remove lightningd_state. 2017-08-29 17:54:14 +02:00
invoice.h lightningd: remove lightningd_state. 2017-08-29 17:54:14 +02:00
jsonrpc.c lightningd: remove lightningd_state. 2017-08-29 17:54:14 +02:00
jsonrpc.h lightningd: remove lightningd_state. 2017-08-29 17:54:14 +02:00
lightningd.c Rename subdaemons, move them into top level. 2017-08-29 17:54:14 +02:00
lightningd.h lightningd: remove lightningd_state. 2017-08-29 17:54:14 +02:00
log.c common: absorb remaining files from daemon/ 2017-08-29 17:54:14 +02:00
log.h lightningd: remove lightningd_state. 2017-08-29 17:54:14 +02:00
netaddr.c common: absorb remaining files from daemon/ 2017-08-29 17:54:14 +02:00
netaddr.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
new_connection.c Rename subdaemons, move them into top level. 2017-08-29 17:54:14 +02:00
new_connection.h lightningd: remove lightningd_state. 2017-08-29 17:54:14 +02:00
opt_time.c common: absorb remaining files from daemon/ 2017-08-29 17:54:14 +02:00
opt_time.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
options.c lightningd: remove lightningd_state. 2017-08-29 17:54:14 +02:00
options.h lightningd: remove lightningd_state. 2017-08-29 17:54:14 +02:00
pay.c Rename subdaemons, move them into top level. 2017-08-29 17:54:14 +02:00
pay.h lightningd: unify pay vs forward path when handling failures. 2017-06-23 09:29:42 +09:30
peer_control.c Rename subdaemons, move them into top level. 2017-08-29 17:54:14 +02:00
peer_control.h common: move some files out of lightningd/ 2017-08-29 17:54:14 +02:00
peer_htlcs.c lightningd: handle case where channeld fails locally-generated HTLC. 2017-08-30 11:36:37 +02:00
peer_htlcs.h common: move some files out of lightningd/ 2017-08-29 17:54:14 +02:00
peer_state.h lightningd: new peer state CLOSINGD_COMPLETE. 2017-07-12 10:21:16 +09:30
subd.c lightningd: remove lightningd_state. 2017-08-29 17:54:14 +02:00
subd.h Rename subdaemons, move them into top level. 2017-08-29 17:54:14 +02:00
watch.c common: absorb remaining files from daemon/ 2017-08-29 17:54:14 +02:00
watch.h lightningd: remove lightningd_state. 2017-08-29 17:54:14 +02:00