-
Notifications
You must be signed in to change notification settings - Fork 6
duty-tracker: actually persist deposit setup duties on time #222
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
Conversation
turns out this code would *never* persist contract state after deposit setup processing. This means that we would lose this state if a node went down.
Codecov ReportAttention: Patch coverage is
@@ Coverage Diff @@
## main #222 +/- ##
==========================================
- Coverage 52.24% 52.15% -0.10%
==========================================
Files 152 152
Lines 22247 22244 -3
==========================================
- Hits 11624 11601 -23
- Misses 10623 10643 +20
... and 3 files with indirect coverage changes 🚀 New features to boost your workflow:
|
What are the implications of this? I'm pretty sure we have done withdrawals after a restart on our envs (and I'm very hopeful that it was tested locally before making the restart PRs). |
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.
ACK c451921
We cannot call empty()
on an Iterator
, hence this is not a 1-liner like I said.
@barakshani with self-nagging, even without persisting this state, it isn't exactly an issue. So, it should not cause any observable effects on the system. |
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 catch.
Yeah @barakshani this is just to cover an edge case where we can lose state |
turns out this code would never persist contract state after deposit setup processing. This means that we would lose this state if a node went down.
Description
Type of Change
Notes to Reviewers
Checklist
Related Issues