Merge pull request #1347 from jkczyz/2022-03-log-approximation
[rust-lightning] / lightning / src / routing / scoring.rs
index 30b0cec536075fe5088582112176c6b5d5617920..3ec44edef494f5e4f6c7b3765e9e4a083bf67c83 100644 (file)
@@ -189,6 +189,7 @@ impl<'a, S: Writeable> Writeable for MutexGuard<'a, S> {
        }
 }
 
+#[derive(Clone)]
 /// [`Score`] implementation that uses a fixed penalty.
 pub struct FixedPenaltyScorer {
        penalty_msat: u64,
@@ -252,6 +253,7 @@ pub struct ScorerUsingTime<T: Time> {
        channel_failures: HashMap<u64, ChannelFailure<T>>,
 }
 
+#[derive(Clone)]
 /// Parameters for configuring [`Scorer`].
 pub struct ScoringParameters {
        /// A fixed penalty in msats to apply to each channel.