core-lightning/wallet/test
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
..
.gitignore wallet: move tests into test/ dir like other unit tests. 2017-12-13 22:46:10 +01:00
Makefile common: use struct onionreply. 2020-01-23 16:17:42 +10:30
run-db.c db: Track the data_version in the database 2020-01-02 14:12:59 -06:00
run-wallet.c lightningd: store raw msg rather than code for locally-failed outgoing HTLCs 2020-02-25 11:12:12 +10:30
test_utils.c Add enable-autotor-v2 config variable 2019-09-28 00:31:02 +02:00
test_utils.h fix: a pr2444 introduced valgrind complaint 2019-03-14 16:51:18 +01:00