File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
//! The top-level routing logic lives here.
2
2
//!
3
- //! You probably want to create a Router and use that as your RoutingMessageHandler and then
4
- //! interrogate it to get routes for your own payments .
3
+ //! Helps to create routes for your own payments based on the NetworkGraph,
4
+ //! constructed from network messages which may come from different sources .
5
5
6
6
use secp256k1:: key:: PublicKey ;
7
7
@@ -155,13 +155,13 @@ struct DummyDirectionalChannelInfo {
155
155
}
156
156
157
157
impl Router {
158
- /// Creates a new router with the given node_id to be used as the source for get_route()
158
+ /// Creates a new router
159
159
pub fn new ( logger : Arc < Logger > ) -> Self {
160
160
Router {
161
161
logger : logger. clone ( ) ,
162
162
}
163
163
}
164
- /// Gets a route from us to the given target node.
164
+ /// Gets a route from us (as specified in the provided NetworkGraph) to the given target node.
165
165
///
166
166
/// Extra routing hops between known nodes and the target will be used if they are included in
167
167
/// last_hops.
You can’t perform that action at this time.
0 commit comments