We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a05b39f commit 18f80d3Copy full SHA for 18f80d3
lightning/src/routing/scoring.rs
@@ -133,6 +133,7 @@ pub trait Score : ScoreLookUp + ScoreUpdate $(+ $supertrait)* {}
133
#[cfg(not(c_bindings))]
134
impl<T: ScoreLookUp + ScoreUpdate $(+ $supertrait)*> Score for T {}
135
136
+#[cfg(not(c_bindings))]
137
impl<S: ScoreLookUp, T: Deref<Target=S>> ScoreLookUp for T {
138
type ScoreParams = S::ScoreParams;
139
fn channel_penalty_msat(
@@ -142,6 +143,7 @@ impl<S: ScoreLookUp, T: Deref<Target=S>> ScoreLookUp for T {
142
143
}
144
145
146
147
impl<S: ScoreUpdate, T: DerefMut<Target=S>> ScoreUpdate for T {
148
fn payment_path_failed(&mut self, path: &Path, short_channel_id: u64) {
149
self.deref_mut().payment_path_failed(path, short_channel_id)
0 commit comments