@@ -1382,6 +1382,7 @@ impl SendEvent {
1382
1382
}
1383
1383
1384
1384
#[ macro_export]
1385
+ /// Don't use this, use the identically-named function instead.
1385
1386
macro_rules! expect_pending_htlcs_forwardable_conditions {
1386
1387
( $node: expr, $expected_failures: expr) => {
1387
1388
$crate:: ln:: functional_test_utils:: expect_pending_htlcs_forwardable_conditions( & $node, & $expected_failures) ;
@@ -1403,6 +1404,9 @@ macro_rules! expect_htlc_handling_failed_destinations {
1403
1404
} }
1404
1405
}
1405
1406
1407
+ /// Checks that an [`Event::PendingHTLCsForwardable`] is available on the given node and, if there
1408
+ /// are any [`Event::HTLCHandlingFailed`] events their [`HTLCDestination`] is included in the
1409
+ /// `expected_failures` set.
1406
1410
pub fn expect_pending_htlcs_forwardable_conditions ( node : & Node , expected_failures : & [ HTLCDestination ] ) {
1407
1411
let events = node. node . get_and_clear_pending_events ( ) ;
1408
1412
match events[ 0 ] {
@@ -1420,6 +1424,9 @@ pub fn expect_pending_htlcs_forwardable_conditions(node: &Node, expected_failure
1420
1424
1421
1425
#[ macro_export]
1422
1426
/// Clears (and ignores) a PendingHTLCsForwardable event
1427
+ ///
1428
+ /// Don't use this, call [`expect_pending_htlcs_forwardable_conditions`] with an empty failure set
1429
+ /// instead.
1423
1430
macro_rules! expect_pending_htlcs_forwardable_ignore {
1424
1431
( $node: expr) => {
1425
1432
$crate:: ln:: functional_test_utils:: expect_pending_htlcs_forwardable_conditions( & $node, & [ ] ) ;
@@ -1428,6 +1435,8 @@ macro_rules! expect_pending_htlcs_forwardable_ignore {
1428
1435
1429
1436
#[ macro_export]
1430
1437
/// Clears (and ignores) PendingHTLCsForwardable and HTLCHandlingFailed events
1438
+ ///
1439
+ /// Don't use this, call [`expect_pending_htlcs_forwardable_conditions`] instead.
1431
1440
macro_rules! expect_pending_htlcs_forwardable_and_htlc_handling_failed_ignore {
1432
1441
( $node: expr, $expected_failures: expr) => {
1433
1442
$crate:: ln:: functional_test_utils:: expect_pending_htlcs_forwardable_conditions( & $node, & $expected_failures) ;
0 commit comments