Correctly include the `sha256_hash_of_onion` field in BADONION errs
authorMatt Corallo <git@bluematt.me>
Thu, 1 Dec 2022 20:30:45 +0000 (20:30 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 6 Dec 2022 20:00:44 +0000 (20:00 +0000)
commitbe7b82b5b8670c27fccba03975a1b4fa34fe5760
treeef306a6cde5456ab4140313872786c76af551524
parent5e7e3d57bf00c75a2be2b5475d39a8a4f6ec1453
Correctly include the `sha256_hash_of_onion` field in BADONION errs

The spec mandates that we copy the `sha256_hash_of_onion` field
from the `UpdateFailMalformedHTLC` message into the error message
we send back to the sender, however we simply ignored it. Here we
copy it into the message correctly.
lightning/src/ln/channelmanager.rs