Skip to content

Commit 0282cfb

Browse files
authored
Merge pull request #3511 from cequals/amackillop/2024-12-30/add-debug-to-scorer-params
Add debug implementations for scoring parameters
2 parents 7c77daf + 48ceefd commit 0282cfb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/routing/scoring.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ where L::Target: Logger {
484484
///
485485
/// The penalty applied to any channel by the [`ProbabilisticScorer`] is the sum of each of the
486486
/// parameters here.
487-
#[derive(Clone)]
487+
#[derive(Clone, Debug)]
488488
pub struct ProbabilisticScoringFeeParameters {
489489
/// A fixed penalty in msats to apply to each channel.
490490
///
@@ -742,7 +742,7 @@ impl ProbabilisticScoringFeeParameters {
742742
/// Used to configure decay parameters that are static throughout the lifetime of the scorer.
743743
/// these decay parameters affect the score of the channel penalty and are not changed on a
744744
/// per-route penalty cost call.
745-
#[derive(Copy, Clone)]
745+
#[derive(Copy, Clone, Debug)]
746746
pub struct ProbabilisticScoringDecayParameters {
747747
/// If we aren't learning any new datapoints for a channel, the historical liquidity bounds
748748
/// tracking can simply live on with increasingly stale data. Instead, when a channel has not

0 commit comments

Comments
 (0)