@@ -72,22 +72,6 @@ impl<G: Deref<Target = NetworkGraph<L>>, L: Deref, S: Deref> Router for DefaultR
72
72
& random_seed_bytes
73
73
)
74
74
}
75
-
76
- fn notify_payment_path_failed ( & self , path : & [ & RouteHop ] , short_channel_id : u64 ) {
77
- self . scorer . lock ( ) . payment_path_failed ( path, short_channel_id) ;
78
- }
79
-
80
- fn notify_payment_path_successful ( & self , path : & [ & RouteHop ] ) {
81
- self . scorer . lock ( ) . payment_path_successful ( path) ;
82
- }
83
-
84
- fn notify_payment_probe_successful ( & self , path : & [ & RouteHop ] ) {
85
- self . scorer . lock ( ) . probe_successful ( path) ;
86
- }
87
-
88
- fn notify_payment_probe_failed ( & self , path : & [ & RouteHop ] , short_channel_id : u64 ) {
89
- self . scorer . lock ( ) . probe_failed ( path, short_channel_id) ;
90
- }
91
75
}
92
76
93
77
/// A trait defining behavior for routing a payment.
@@ -106,14 +90,6 @@ pub trait Router {
106
90
) -> Result < Route , LightningError > {
107
91
self . find_route ( payer, route_params, first_hops, inflight_htlcs)
108
92
}
109
- /// Lets the router know that payment through a specific path has failed.
110
- fn notify_payment_path_failed ( & self , path : & [ & RouteHop ] , short_channel_id : u64 ) ;
111
- /// Lets the router know that payment through a specific path was successful.
112
- fn notify_payment_path_successful ( & self , path : & [ & RouteHop ] ) ;
113
- /// Lets the router know that a payment probe was successful.
114
- fn notify_payment_probe_successful ( & self , path : & [ & RouteHop ] ) ;
115
- /// Lets the router know that a payment probe failed.
116
- fn notify_payment_probe_failed ( & self , path : & [ & RouteHop ] , short_channel_id : u64 ) ;
117
93
}
118
94
119
95
/// [`Score`] implementation that factors in in-flight HTLC liquidity.
0 commit comments