Skip to content

Commit c83e2b1

Browse files
committed
Correct ChannelUnavailable error docs on send_payment_with_route
Monitor update failure can no longer lead to a `ChannelUnavailable` error, but more common cases such as the peer being disconnected always could, so those should be documented clearer.
1 parent 32784b0 commit c83e2b1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3375,9 +3375,8 @@ where
33753375
/// In general, a path may raise:
33763376
/// * [`APIError::InvalidRoute`] when an invalid route or forwarding parameter (cltv_delta, fee,
33773377
/// node public key) is specified.
3378-
/// * [`APIError::ChannelUnavailable`] if the next-hop channel is not available for updates
3379-
/// (including due to previous monitor update failure or new permanent monitor update
3380-
/// failure).
3378+
/// * [`APIError::ChannelUnavailable`] if the next-hop channel is not available as it has been
3379+
/// closed, doesn't exist, or the peer is currently disconnected.
33813380
/// * [`APIError::MonitorUpdateInProgress`] if a new monitor update failure prevented sending the
33823381
/// relevant updates.
33833382
///

0 commit comments

Comments
 (0)