Notify scorer of failing payment path and channel
[rust-lightning] / lightning / src / routing / scorer.rs
index e3f5c8679b68d6b57ca418b70befdc0ff34e35d7..01481f16c297f9218aa05082b3fbdc7f22e886ba 100644 (file)
@@ -45,6 +45,9 @@
 use routing;
 
 use routing::network_graph::NodeId;
+use routing::router::RouteHop;
+
+use prelude::*;
 
 /// [`routing::Score`] implementation that provides reasonable default behavior.
 ///
@@ -78,4 +81,6 @@ impl routing::Score for Scorer {
        ) -> u64 {
                self.base_penalty_msat
        }
+
+       fn payment_path_failed(&mut self, _path: &Vec<RouteHop>, _short_channel_id: u64) {}
 }