Skip to content

Commit

Permalink
Only check for target penalty
Browse files Browse the repository at this point in the history
  • Loading branch information
tnull committed Jul 4, 2022
1 parent b208d1f commit 36a243e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lightning/src/routing/scoring.rs
Expand Up @@ -725,10 +725,6 @@ impl<G: Deref<Target = NetworkGraph<L>>, L: Deref, T: Time> Score for Probabilis
fn channel_penalty_msat(
&self, short_channel_id: u64, source: &NodeId, target: &NodeId, usage: ChannelUsage
) -> u64 {
if let Some(penalty) = self.params.manual_node_penalties.get(source) {
return *penalty;
}

if let Some(penalty) = self.params.manual_node_penalties.get(target) {
return *penalty;
}
Expand Down

0 comments on commit 36a243e

Please sign in to comment.