Skip to content

Commit e348b09

Browse files
committed
Reword commment
1 parent 61c8747 commit e348b09

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lightning/src/routing/scoring.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -362,10 +362,10 @@ pub struct ProbabilisticScoringParameters {
362362
/// Default value: 256 msat
363363
pub amount_penalty_multiplier_msat: u64,
364364

365-
/// This penalty is applied so we prefer nodes with a smaller `htlc_maximum_msat`, which makes
366-
/// balance discovery attacks harder to execute. As this improves privacy network-wide, we
367-
/// treat such nodes preferentially and hence create an incentive to restrict
368-
/// `htlc_maximum_msat`.
365+
/// This penalty is applied when `htlc_maximum_msat` is equal to or larger than half of the
366+
/// channel's capacity, which makes us prefer nodes with a smaller `htlc_maximum_msat`. We
367+
/// treat such nodes preferentially as this makes balance discovery attacks harder to execute,
368+
/// thereby creating an incentive to restrict `htlc_maximum_msat` and improve privacy.
369369
///
370370
/// Default value: 500 msat
371371
pub anti_probing_penalty_msat: u64,

0 commit comments

Comments
 (0)