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