-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unconfirmed blocks #502
Unconfirmed blocks #502
Conversation
Add test for ActionMonitoringTriggeredEvent rescheduling. One TODO intentionally left for later.
c985754
to
fc0c80b
Compare
Codecov Report
@@ Coverage Diff @@
## master #502 +/- ##
==========================================
- Coverage 91.26% 91.13% -0.13%
==========================================
Files 35 36 +1
Lines 2220 2233 +13
Branches 282 283 +1
==========================================
+ Hits 2026 2035 +9
- Misses 146 148 +2
- Partials 48 50 +2
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice PR, left some small comments.
monitor_request.reward_proof_signature, | ||
).transact({"from": context.ms_state.address}) | ||
) | ||
), "This MS already monitored this channel. Should be impossible." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this be triggered somehow? Like:
- MS has a BP, and call
monitor
with it, thusclosing_tx_hash
is set - We receive a new
MonitorRequest
- Monitoring is triggered again
It's quite constructed because the client would need to be online...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we receive a new MR after calling monitor
, should we call monitor
again with the updated BP? That would increase our gas cost. But otherwise a different MS might do that and we will get no reward, although we already have spent gas.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess in general this scenario is not likely.
And what you describe sounds like a loose/loose situation, not sure how we get out of that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #504.
...and use UDC_SECURITY_MARGIN_FACTOR, instead.
for consistency with `monitoring_service/constants.py` and `raiden/constants.py`
This is the main work for #239.
Todos left for other PRs:
closing_tx_hash