core-lightning/wallet
Rusty Russell 72d55d3e3b lightningd: store raw msg rather than code for locally-failed outgoing HTLCs
At the moment, we store e.g. WIRE_TEMPORARY_CHANNEL_FAILURE, and then
lightningd has a large demux function which turns that into the correct
error message.

Such an enum demuxer is an anti-pattern.

Instead, store the message directly for output HTLCs; channeld now
sends us an error message rather than an error code.

For input HTLCs we will still need the failure code if the onion was
bad (since we need to prompt channeld to send a completely different
message than normal), though we can (and will!) eliminate its use in
non-BADONION failure cases.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2020-02-25 11:12:12 +10:30
..
test lightningd: store raw msg rather than code for locally-failed outgoing HTLCs 2020-02-25 11:12:12 +10:30
.gitignore wallet: Create and manage a sqlite3 database for the wallet 2017-06-06 09:16:10 +09:30
db_common.h db: Track the data_version in the database 2020-01-02 14:12:59 -06:00
db_postgres.c db: Implement postgres driver primitives 2019-09-22 02:03:43 +00:00
db_sqlite3.c db: Move remainder of the sqlite3 into the apropriate file 2019-09-22 02:03:43 +00:00
db.c wallet: Add new htlc column "localfailmsg" for outgoing htlcs. 2020-02-25 11:12:12 +10:30
db.h common: add struct onionreply 2020-01-23 16:17:42 +10:30
invoices.c wallet: add invoice features into db. 2019-11-24 23:33:17 +00:00
invoices.h wallet: add invoice features into db. 2019-11-24 23:33:17 +00:00
Makefile wallet/Makefile: fix dependency line. 2019-11-28 11:50:13 +01:00
txfilter.c elements: Fix transaction handling for elements transactions 2019-10-03 04:32:57 +00:00
txfilter.h pubkey: rename PUBKEY_DER_LEN to PUBKEY_CMPR_LEN. 2019-04-09 12:37:16 -07:00
wallet.c lightningd: store raw msg rather than code for locally-failed outgoing HTLCs 2020-02-25 11:12:12 +10:30
wallet.h wallet: Add new htlc column "localfailmsg" for outgoing htlcs. 2020-02-25 11:12:12 +10:30
walletrpc.c lightningd/bitcoind: use the Bitcoin plugin for getutxout 2020-02-12 11:45:07 +10:30
walletrpc.h Use expected LIGHTNING_DIR_FILE_H define 2018-03-25 23:54:21 +00:00