core-lightning/channeld
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 channeld: get the onionreply back from lightningd for failed htlcs. 2020-02-25 11:12:12 +10:30
channel_wire.csv lightningd: store raw msg rather than code for locally-failed outgoing HTLCs 2020-02-25 11:12:12 +10:30
channeld_htlc.h channeld: get the onionreply back from lightningd for failed htlcs. 2020-02-25 11:12:12 +10:30
channeld.c lightningd: store raw msg rather than code for locally-failed outgoing HTLCs 2020-02-25 11:12:12 +10:30
commit_tx.c elements: Fix missing witness script entry for fee outputs 2020-02-08 14:26:12 +01:00
commit_tx.h channeld: remove chainparams local parameter. 2019-11-20 20:41:53 +01:00
full_channel_error.h channeld: map htlc add/remove errors to names. 2018-02-19 02:56:51 +00:00
full_channel.c channeld: get the onionreply back from lightningd for failed htlcs. 2020-02-25 11:12:12 +10:30
full_channel.h channeld: get the onionreply back from lightningd for failed htlcs. 2020-02-25 11:12:12 +10:30
Makefile common: use struct onionreply. 2020-01-23 16:17:42 +10:30