X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Frouting%2Fmod.rs;h=9e6d8e2afd2f763f90ccff2e2eab517d1f30a573;hb=3a9fe209e104e048921ad50be77a80b18a98b45c;hp=51ffd91b50483d58bc2016440bdb98d9f82886e5;hpb=070e22bf09a546651392eeb155128e09fd96cc71;p=rust-lightning diff --git a/lightning/src/routing/mod.rs b/lightning/src/routing/mod.rs index 51ffd91b..9e6d8e2a 100644 --- a/lightning/src/routing/mod.rs +++ b/lightning/src/routing/mod.rs @@ -9,17 +9,9 @@ //! Structs and impls for receiving messages about the network and storing the topology live here. -pub mod network_graph; +pub mod utxo; +pub mod gossip; 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; +#[cfg(test)] +pub(crate) mod test_utils;