core-lightning/wallet
Rusty Russell 1b9791f0f5 pay: delete HTLC when we delete payment.
This fixes the root cause of https://github.com/ElementsProject/lightning/issues/1212
where we deleted the payment because we wanted to retry, then retry failed
so we had an (old) HTLC without a matching payment.  We then fed that
HTLC to onchaind, which tells us it's missing, and we try to fail the
payment and deref a NULL pointer.

Fixes: #1212
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-03-16 04:01:06 +00:00
..
test utils: remove tal_tmpctx altogether, use global. 2018-03-16 00:16:10 +00:00
.gitignore wallet: Create and manage a sqlite3 database for the wallet 2017-06-06 09:16:10 +09:30
db.c wallet: Add DB fields for recording routing failures. 2018-03-14 05:33:09 +00:00
db.h wallet: add check-source to makefile. 2018-03-07 18:55:51 +01:00
invoices.c Mark unused parameters as such (using "UNUSED") 2018-03-16 01:17:40 +00:00
invoices.h wallet: add check-source to makefile. 2018-03-07 18:55:51 +01:00
Makefile wallet: add check-source to makefile. 2018-03-07 18:55:51 +01:00
txfilter.c utils: remove tal_tmpctx altogether, use global. 2018-03-16 00:16:10 +00:00
txfilter.h txfilter: clean up prototypes. 2018-03-07 18:55:51 +01:00
wallet.c pay: delete HTLC when we delete payment. 2018-03-16 04:01:06 +00:00
wallet.h pay: delete HTLC when we delete payment. 2018-03-16 04:01:06 +00:00
walletrpc.c jsonrpc: Add confirmation status to listfunds output 2018-03-06 18:59:27 +01:00
walletrpc.h walletrpc: Implemented the withdrawal flow 2017-06-23 16:02:20 +09:30