Skip to content

Commit cc1bd74

Browse files
committed
f - expand doc example
1 parent 34b482b commit cc1bd74

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lightning/src/routing/scorer.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@
3535
//!
3636
//! // Or use custom channel penalties.
3737
//! let scorer = Scorer::new(ScoringParameters {
38-
//! base_penalty_msat: 1000, ..ScoringParameters::default()
38+
//! base_penalty_msat: 1000,
39+
//! failure_penalty_msat: 2 * 1024 * 1000,
40+
//! ..ScoringParameters::default()
3941
//! });
4042
//!
4143
//! let route = find_route(&payer, &params, &network_graph, None, &logger, &scorer);

0 commit comments

Comments
 (0)