]> git.bitcoin.ninja Git - rust-lightning/commitdiff
InboundOnionErr fields public
authorEvan Feenstra <evanfeenstra@gmail.com>
Wed, 15 Nov 2023 21:08:56 +0000 (13:08 -0800)
committerEvan Feenstra <evanfeenstra@gmail.com>
Wed, 15 Nov 2023 21:08:56 +0000 (13:08 -0800)
lightning/src/ln/channelmanager.rs

index 08d43c20a16cda4ac6949b1394b4151561367c72..d27dc9d3a7d891209c2a87a72d7786dc5b54369b 100644 (file)
@@ -396,9 +396,12 @@ impl HTLCSource {
 
 /// Invalid inbound onion payment.
 pub struct InboundOnionErr {
-       err_code: u16,
-       err_data: Vec<u8>,
-       msg: &'static str,
+       /// BOLT 4 error code.
+       pub err_code: u16,
+       /// Data attached to this error.
+       pub err_data: Vec<u8>,
+       /// 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