gruve-p
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
electrum/lnrater.py
|
|
@ -47,7 +47,7 @@ EXCLUDE_NODE_AGE = 2 * MONTH_IN_BLOCKS |
|
|
|
# exclude nodes which have young mean channel age |
|
|
|
EXCLUDE_MEAN_CHANNEL_AGE = EXCLUDE_NODE_AGE |
|
|
|
# exclude nodes which charge a high fee |
|
|
|
EXCLUCE_EFFECTIVE_FEE_RATE = 0.001500 |
|
|
|
EXCLUDE_EFFECTIVE_FEE_RATE = 0.001500 |
|
|
|
# exclude nodes whose last channel open was a long time ago |
|
|
|
EXCLUDE_BLOCKS_LAST_CHANNEL = 3 * MONTH_IN_BLOCKS |
|
|
|
|
|
|
@ -182,7 +182,7 @@ class LNRater(Logger): |
|
|
|
p[1].fee_base_msat, |
|
|
|
p[1].fee_proportional_millionths) / FEE_AMOUNT_MSAT for p in channel_policies] |
|
|
|
mean_fees_rate = mean(effective_fee_rates) |
|
|
|
if mean_fees_rate > EXCLUCE_EFFECTIVE_FEE_RATE: |
|
|
|
if mean_fees_rate > EXCLUDE_EFFECTIVE_FEE_RATE: |
|
|
|
continue |
|
|
|
|
|
|
|
self._node_stats[n] = NodeStats( |
|
|
|