From: Evan Feenstra Date: Wed, 15 Nov 2023 21:08:56 +0000 (-0800) Subject: InboundOnionErr fields public X-Git-Tag: v0.0.119~48^2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=192fe051470c75d154055bca4bfea39f04ffff41;p=rust-lightning InboundOnionErr fields public --- diff --git a/lightning/src/ln/channelmanager.rs b/lightning/src/ln/channelmanager.rs index 08d43c20a..d27dc9d3a 100644 --- a/lightning/src/ln/channelmanager.rs +++ b/lightning/src/ln/channelmanager.rs @@ -396,9 +396,12 @@ impl HTLCSource { /// Invalid inbound onion payment. pub struct InboundOnionErr { - err_code: u16, - err_data: Vec, - msg: &'static str, + /// BOLT 4 error code. + pub err_code: u16, + /// Data attached to this error. + pub err_data: Vec, + /// Error message text. + pub msg: &'static str, } /// This enum is used to specify which error data to send to peers when failing back an HTLC