Skip to content

Commit b11f251

Browse files
committed
f clarity
1 parent 704165a commit b11f251

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lightning/src/ln/functional_test_utils.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1467,8 +1467,10 @@ impl<'a> PaymentFailedConditions<'a> {
14671467
#[cfg(test)]
14681468
macro_rules! expect_payment_failed_with_update {
14691469
($node: expr, $expected_payment_hash: expr, $rejected_by_dest: expr, $scid: expr, $chan_closed: expr) => {
1470-
$crate::ln::functional_test_utils::expect_payment_failed_conditions(&$node, $expected_payment_hash, $rejected_by_dest,
1471-
$crate::ln::functional_test_utils::PaymentFailedConditions::new().blamed_scid($scid).blamed_chan_closed($chan_closed));
1470+
$crate::ln::functional_test_utils::expect_payment_failed_conditions(
1471+
&$node, $expected_payment_hash, $rejected_by_dest,
1472+
$crate::ln::functional_test_utils::PaymentFailedConditions::new()
1473+
.blamed_scid($scid).blamed_chan_closed($chan_closed));
14721474
}
14731475
}
14741476

@@ -1518,7 +1520,8 @@ pub fn expect_payment_failed_conditions<'a, 'b, 'c, 'd, 'e>(
15181520
if let Some(scid) = conditions.expected_blamed_scid {
15191521
assert_eq!(msg.contents.short_channel_id, scid);
15201522
}
1521-
assert_eq!(msg.contents.flags & 2, 0);
1523+
const CHAN_DISABLED_FLAG: u8 = 2;
1524+
assert_eq!(msg.contents.flags & CHAN_DISABLED_FLAG, 0);
15221525
},
15231526
Some(NetworkUpdate::ChannelClosed { short_channel_id, is_permanent }) if chan_closed => {
15241527
if let Some(scid) = conditions.expected_blamed_scid {

0 commit comments

Comments
 (0)