From: Matt Corallo Date: Thu, 1 Dec 2022 20:30:45 +0000 (+0000) Subject: Correctly include the `sha256_hash_of_onion` field in BADONION errs X-Git-Tag: v0.0.113~13^2~4 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=be7b82b5b8670c27fccba03975a1b4fa34fe5760;p=rust-lightning 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. --- diff --git a/lightning/src/ln/channelmanager.rs b/lightning/src/ln/channelmanager.rs index 36886645a..9ec1c43cf 100644 --- a/lightning/src/ln/channelmanager.rs +++ b/lightning/src/ln/channelmanager.rs @@ -5076,7 +5076,7 @@ impl ChannelManager return Err(MsgHandleErrInternal::send_err_msg_no_close("Failed to find corresponding channel".to_owned(), msg.channel_id))