File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ use chain::chaininterface::ChainWatchInterface;
9
9
use ln:: channelmanager;
10
10
use ln:: features:: { ChannelFeatures , NodeFeatures } ;
11
11
use ln:: msgs:: { DecodeError , ErrorAction , LightningError } ;
12
- use routing:: network_graph:: { NetGraphMsgHandler , RoutingFees } ;
12
+ use routing:: network_graph:: { NetGraphMsgHandler , RoutingFees , ChannelScorer } ;
13
13
use util:: ser:: { Writeable , Readable } ;
14
14
use util:: logger:: Logger ;
15
15
@@ -104,6 +104,12 @@ impl Readable for Route {
104
104
}
105
105
}
106
106
107
+ /// Another default implementation of ChannelScorer. The use case is a user processing the
108
+ /// success/failure of a given Route. They can implement these functions to fit their needs.
109
+ impl ChannelScorer for Route {
110
+ type Metadata = Option < u8 > ;
111
+ }
112
+
107
113
/// A channel descriptor which provides a last-hop route to get_route
108
114
pub struct RouteHint {
109
115
/// The node_id of the non-target end of the route
You can’t perform that action at this time.
0 commit comments