From 3e84b0aad61000a64bc829d793f182d46a738240 Mon Sep 17 00:00:00 2001 From: Paul Lange Date: Mon, 2 Sep 2019 11:50:47 +0200 Subject: [PATCH] Remove MONITORING_MIN_CAPACITY check for monitoring --- raiden/services.py | 16 ++-------------- raiden/settings.py | 1 - 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/raiden/services.py b/raiden/services.py index de4f08a1ab..9cffc388cb 100644 --- a/raiden/services.py +++ b/raiden/services.py @@ -7,8 +7,8 @@ from raiden.constants import RoutingMode from raiden.messages.monitoring_service import RequestMonitoring from raiden.messages.path_finding_service import PFSCapacityUpdate, PFSFeeUpdate -from raiden.settings import MONITORING_MIN_CAPACITY, MONITORING_REWARD -from raiden.transfer import channel, views +from raiden.settings import MONITORING_REWARD +from raiden.transfer import views from raiden.transfer.architecture import BalanceProofSignedState, BalanceProofUnsignedState from raiden.transfer.identifiers import CanonicalIdentifier from raiden.transfer.state import ChainState @@ -79,18 +79,6 @@ def update_monitoring_service_from_balance_proof( ) assert channel_state, msg - balance = channel.get_balance( - sender=channel_state.our_state, receiver=channel_state.partner_state - ) - - if balance < MONITORING_MIN_CAPACITY: - log.warn( - f"Skipping update to Monitoring service. " - f"Available balance of {balance} is less than configured " - f"minimum capacity of {MONITORING_MIN_CAPACITY}" - ) - return - assert raiden.user_deposit is not None rei_balance = raiden.user_deposit.effective_balance(raiden.address, "latest") if rei_balance < MONITORING_REWARD: diff --git a/raiden/settings.py b/raiden/settings.py index ff466030c8..d3f6ff794d 100644 --- a/raiden/settings.py +++ b/raiden/settings.py @@ -65,7 +65,6 @@ MIN_REI_THRESHOLD = 100 MONITORING_REWARD = TokenAmount(5_000_000_000_000_000_000) # about 1$ -MONITORING_MIN_CAPACITY = TokenAmount(100) MEDIATION_FEE = FeeAmount(0)