Always return malformed for BADONION errors
authorMatt Corallo <git@bluematt.me>
Mon, 17 Dec 2018 20:25:32 +0000 (15:25 -0500)
committerMatt Corallo <git@bluematt.me>
Tue, 18 Dec 2018 03:55:45 +0000 (22:55 -0500)
commitb7e76c5c405c09adb2f5214d8fc38294381486b5
tree306714af0346281abba807a311e87a89286bdfe5
parent7cfb09c79752ec68dd36af36689e3f75834e39d6
Always return malformed for BADONION errors

Also be willing to forward something with a pubkey that we know is
complete garbage, but upstream will just fail that with BADONION
when they get it.

I think this is kinda intended by the spec, but it definitely needs
to be clarified.
src/ln/channelmanager.rs