Skip to content

Commit 192fe05

Browse files
committed
InboundOnionErr fields public
1 parent 378885d commit 192fe05

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -396,9 +396,12 @@ impl HTLCSource {
396396

397397
/// Invalid inbound onion payment.
398398
pub struct InboundOnionErr {
399-
err_code: u16,
400-
err_data: Vec<u8>,
401-
msg: &'static str,
399+
/// BOLT 4 error code.
400+
pub err_code: u16,
401+
/// Data attached to this error.
402+
pub err_data: Vec<u8>,
403+
/// Error message text.
404+
pub msg: &'static str,
402405
}
403406

404407
/// This enum is used to specify which error data to send to peers when failing back an HTLC

0 commit comments

Comments
 (0)