Skip to content

Commit bdcf9e0

Browse files
committed
f clarity
1 parent 3750650 commit bdcf9e0

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
@@ -1394,8 +1394,10 @@ impl<'a> PaymentFailedConditions<'a> {
13941394
#[cfg(test)]
13951395
macro_rules! expect_payment_failed_with_update {
13961396
($node: expr, $expected_payment_hash: expr, $rejected_by_dest: expr, $scid: expr, $chan_closed: expr) => {
1397-
$crate::ln::functional_test_utils::expect_payment_failed_conditions(&$node, $expected_payment_hash, $rejected_by_dest,
1398-
$crate::ln::functional_test_utils::PaymentFailedConditions::new().blamed_scid($scid).blamed_chan_closed($chan_closed));
1397+
$crate::ln::functional_test_utils::expect_payment_failed_conditions(
1398+
&$node, $expected_payment_hash, $rejected_by_dest,
1399+
$crate::ln::functional_test_utils::PaymentFailedConditions::new()
1400+
.blamed_scid($scid).blamed_chan_closed($chan_closed));
13991401
}
14001402
}
14011403

@@ -1445,7 +1447,8 @@ pub fn expect_payment_failed_conditions<'a, 'b, 'c, 'd, 'e>(
14451447
if let Some(scid) = conditions.expected_blamed_scid {
14461448
assert_eq!(msg.contents.short_channel_id, scid);
14471449
}
1448-
assert_eq!(msg.contents.flags & 2, 0);
1450+
const CHAN_DISABLED_FLAG: u8 = 2;
1451+
assert_eq!(msg.contents.flags & CHAN_DISABLED_FLAG, 0);
14491452
},
14501453
Some(NetworkUpdate::ChannelClosed { short_channel_id, is_permanent }) if chan_closed => {
14511454
if let Some(scid) = conditions.expected_blamed_scid {

0 commit comments

Comments
 (0)