We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebdbee0 commit a7f0034Copy full SHA for a7f0034
lightning/src/ln/onion_utils.rs
@@ -1418,8 +1418,7 @@ impl HTLCFailReason {
1418
const NODE: u16 = 0x2000;
1419
const UPDATE: u16 = 0x1000;
1420
1421
- if failure_code == 1 | PERM { debug_assert!(data.is_empty()) }
1422
- else if failure_code == 2 | NODE { debug_assert!(data.is_empty()) }
+ if failure_code == 2 | NODE { debug_assert!(data.is_empty()) }
1423
else if failure_code == 2 | PERM | NODE { debug_assert!(data.is_empty()) }
1424
else if failure_code == 3 | PERM | NODE { debug_assert!(data.is_empty()) }
1425
else if failure_code == 4 | BADONION | PERM { debug_assert_eq!(data.len(), 32) }
0 commit comments