From 192fe051470c75d154055bca4bfea39f04ffff41 Mon Sep 17 00:00:00 2001 From: Evan Feenstra Date: Wed, 15 Nov 2023 13:08:56 -0800 Subject: [PATCH] InboundOnionErr fields public --- lightning/src/ln/channelmanager.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 -- 2.39.5