core-lightning/lightningd/channel
Rusty Russell 3f65f0f000 lightningd: fix up malformed onion handling.
In the case where we can't decrypt the onion, we can't fail it in the
normal way (which is encrypted using the onion shared secret), we need
to respond with a update_fail_malformed_htlc message.

Moreover, we need to remember this for persistence.  This means that
we really have three conclusions for an HTLC: fulfilled, failed,
malformed.  Fix up the logic everywhere which assumed failed or
fulfilled.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-06-23 09:29:42 +09:30
..
channel_wire.csv lightningd: fix up malformed onion handling. 2017-06-23 09:29:42 +09:30
channel.c lightningd: fix up malformed onion handling. 2017-06-23 09:29:42 +09:30
Makefile channel: unwrap and send incoming HTLCs to master. 2017-04-01 23:59:46 +10:30