@@ -1394,6 +1394,7 @@ impl SendEvent {
1394
1394
}
1395
1395
1396
1396
#[ macro_export]
1397
+ /// Don't use this, use the identically-named function instead.
1397
1398
macro_rules! expect_pending_htlcs_forwardable_conditions {
1398
1399
( $node: expr, $expected_failures: expr) => {
1399
1400
$crate:: ln:: functional_test_utils:: expect_pending_htlcs_forwardable_conditions( & $node, & $expected_failures) ;
@@ -1415,6 +1416,9 @@ macro_rules! expect_htlc_handling_failed_destinations {
1415
1416
} }
1416
1417
}
1417
1418
1419
+ /// Checks that an [`Event::PendingHTLCsForwardable`] is available on the given node and, if there
1420
+ /// are any [`Event::HTLCHandlingFailed`] events their [`HTLCDestination`] is included in the
1421
+ /// `expected_failures` set.
1418
1422
pub fn expect_pending_htlcs_forwardable_conditions ( node : & Node , expected_failures : & [ HTLCDestination ] ) {
1419
1423
let events = node. node . get_and_clear_pending_events ( ) ;
1420
1424
match events[ 0 ] {
@@ -1432,6 +1436,9 @@ pub fn expect_pending_htlcs_forwardable_conditions(node: &Node, expected_failure
1432
1436
1433
1437
#[ macro_export]
1434
1438
/// Clears (and ignores) a PendingHTLCsForwardable event
1439
+ ///
1440
+ /// Don't use this, call [`expect_pending_htlcs_forwardable_conditions`] with an empty failure set
1441
+ /// instead.
1435
1442
macro_rules! expect_pending_htlcs_forwardable_ignore {
1436
1443
( $node: expr) => {
1437
1444
$crate:: ln:: functional_test_utils:: expect_pending_htlcs_forwardable_conditions( & $node, & [ ] ) ;
@@ -1440,6 +1447,8 @@ macro_rules! expect_pending_htlcs_forwardable_ignore {
1440
1447
1441
1448
#[ macro_export]
1442
1449
/// Clears (and ignores) PendingHTLCsForwardable and HTLCHandlingFailed events
1450
+ ///
1451
+ /// Don't use this, call [`expect_pending_htlcs_forwardable_conditions`] instead.
1443
1452
macro_rules! expect_pending_htlcs_forwardable_and_htlc_handling_failed_ignore {
1444
1453
( $node: expr, $expected_failures: expr) => {
1445
1454
$crate:: ln:: functional_test_utils:: expect_pending_htlcs_forwardable_conditions( & $node, & $expected_failures) ;
0 commit comments