Skip to content

Commit

Permalink
Remove MONITORING_MIN_CAPACITY check for monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
palango authored and jomuel committed Sep 2, 2019
1 parent 431c4b6 commit 3e84b0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
16 changes: 2 additions & 14 deletions raiden/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
1 change: 0 additions & 1 deletion raiden/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 3e84b0a

Please sign in to comment.