InboundOnionErr fields public

This commit is contained in:
Evan Feenstra 2023-11-15 13:08:56 -08:00
parent 378885d8db
commit 192fe05147

View 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