X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Frouting%2Fmod.rs;h=a3ab6c0c1b30ff04e50ab5892b91ef358a1980f2;hb=72069bfc9d082d3d142cfa09dca2bf6e1f085710;hp=51ffd91b50483d58bc2016440bdb98d9f82886e5;hpb=107c6c793980b44aff9d1ebed226ae8141378e5c;p=rust-lightning diff --git a/lightning/src/routing/mod.rs b/lightning/src/routing/mod.rs index 51ffd91b..a3ab6c0c 100644 --- a/lightning/src/routing/mod.rs +++ b/lightning/src/routing/mod.rs @@ -11,15 +11,4 @@ pub mod network_graph; pub mod router; -pub mod scorer; - -use routing::network_graph::NodeId; - -/// 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 - /// in the direction from `source` to `target`. - fn channel_penalty_msat(&self, short_channel_id: u64, source: &NodeId, target: &NodeId) -> u64; -} +pub mod scoring;