Skip to content

Commit a5c3342

Browse files
committed
f docs
1 parent 3f422f7 commit a5c3342

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lightning/src/ln/functional_test_utils.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1381,6 +1381,7 @@ impl SendEvent {
13811381
}
13821382

13831383
#[macro_export]
1384+
/// Don't use this, use the identically-named function instead.
13841385
macro_rules! expect_pending_htlcs_forwardable_conditions {
13851386
($node: expr, $expected_failures: expr) => {
13861387
$crate::ln::functional_test_utils::expect_pending_htlcs_forwardable_conditions(&$node, &$expected_failures);
@@ -1402,6 +1403,9 @@ macro_rules! expect_htlc_handling_failed_destinations {
14021403
}}
14031404
}
14041405

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.
14051409
pub fn expect_pending_htlcs_forwardable_conditions(node: &Node, expected_failures: &[HTLCDestination]) {
14061410
let events = node.node.get_and_clear_pending_events();
14071411
match events[0] {
@@ -1419,6 +1423,9 @@ pub fn expect_pending_htlcs_forwardable_conditions(node: &Node, expected_failure
14191423

14201424
#[macro_export]
14211425
/// 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.
14221429
macro_rules! expect_pending_htlcs_forwardable_ignore {
14231430
($node: expr) => {
14241431
$crate::ln::functional_test_utils::expect_pending_htlcs_forwardable_conditions(&$node, &[]);
@@ -1427,6 +1434,8 @@ macro_rules! expect_pending_htlcs_forwardable_ignore {
14271434

14281435
#[macro_export]
14291436
/// Clears (and ignores) PendingHTLCsForwardable and HTLCHandlingFailed events
1437+
///
1438+
/// Don't use this, call [`expect_pending_htlcs_forwardable_conditions`] instead.
14301439
macro_rules! expect_pending_htlcs_forwardable_and_htlc_handling_failed_ignore {
14311440
($node: expr, $expected_failures: expr) => {
14321441
$crate::ln::functional_test_utils::expect_pending_htlcs_forwardable_conditions(&$node, &$expected_failures);

0 commit comments

Comments
 (0)