Skip to content

Commit 78ad10f

Browse files
committed
f - Only enable with_fixed_penalty in tests
1 parent 829cf9a commit 78ad10f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lightning/src/routing/scorer.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ impl Scorer {
9898
}
9999

100100
/// Creates a new scorer using `penalty_msat` as a fixed channel penalty.
101+
#[cfg(any(test, feature = "fuzztarget", feature = "_test_utils"))]
101102
pub fn with_fixed_penalty(penalty_msat: u64) -> Self {
102103
Self::new(ScoringParameters {
103104
base_penalty_msat: penalty_msat,

0 commit comments

Comments
 (0)