Skip to content

Commit

Permalink
InboundOnionErr fields public
Browse files Browse the repository at this point in the history
  • Loading branch information
Evanfeenstra committed Nov 15, 2023
1 parent 378885d commit 192fe05
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lightning/src/ln/channelmanager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 192fe05

Please sign in to comment.