|
13 | 13 | //! responsible for tracking which channels are open, HTLCs are in flight and reestablishing those
|
14 | 14 | //! upon reconnect to the relevant peer(s).
|
15 | 15 | //!
|
16 |
| -//! It does not manage routing logic (see [`find_route`] for that) nor does it manage constructing |
| 16 | +//! It does not manage routing logic (see [`Router`] for that) nor does it manage constructing |
17 | 17 | //! on-chain transactions (it only monitors the chain to watch for any force-closes that might
|
18 | 18 | //! imply it needs to fail HTLCs/payments/channels it manages).
|
19 |
| -//! |
20 |
| -//! [`find_route`]: crate::routing::router::find_route |
21 | 19 |
|
22 | 20 | use bitcoin::blockdata::block::BlockHeader;
|
23 | 21 | use bitcoin::blockdata::transaction::Transaction;
|
@@ -1745,14 +1743,12 @@ where
|
1745 | 1743 | self.list_channels_with_filter(|_| true)
|
1746 | 1744 | }
|
1747 | 1745 |
|
1748 |
| - /// Gets the list of usable channels, in random order. Useful as an argument to [`find_route`] |
1749 |
| - /// to ensure non-announced channels are used. |
| 1746 | + /// Gets the list of usable channels, in random order. Useful as an argument to |
| 1747 | + /// [`Router::find_route`] to ensure non-announced channels are used. |
1750 | 1748 | ///
|
1751 | 1749 | /// These are guaranteed to have their [`ChannelDetails::is_usable`] value set to true, see the
|
1752 | 1750 | /// documentation for [`ChannelDetails::is_usable`] for more info on exactly what the criteria
|
1753 | 1751 | /// are.
|
1754 |
| - /// |
1755 |
| - /// [`find_route`]: crate::routing::router::find_route |
1756 | 1752 | pub fn list_usable_channels(&self) -> Vec<ChannelDetails> {
|
1757 | 1753 | // Note we use is_live here instead of usable which leads to somewhat confused
|
1758 | 1754 | // internal/external nomenclature, but that's ok cause that's probably what the user
|
|
0 commit comments