X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Frouting%2Fmod.rs;h=a3ab6c0c1b30ff04e50ab5892b91ef358a1980f2;hb=b62b244c3c826523a81631037cd060bafef8e402;hp=1cf73c2689eecc9029114d7ab6d24c4b19b66557;hpb=001bc7113a92a586e7e7ac4557bbae7a1a402550;p=rust-lightning diff --git a/lightning/src/routing/mod.rs b/lightning/src/routing/mod.rs index 1cf73c26..a3ab6c0c 100644 --- a/lightning/src/routing/mod.rs +++ b/lightning/src/routing/mod.rs @@ -11,12 +11,4 @@ pub mod network_graph; pub mod router; -pub mod scorer; - -/// An interface used to score payment channels for path finding. -/// -/// Scoring is in terms of fees willing to be paid in order to avoid routing through a channel. -pub trait Score { - /// Returns the fee in msats willing to be paid to avoid routing through the given channel. - fn channel_penalty_msat(&self, short_channel_id: u64) -> u64; -} +pub mod scoring;