-
Notifications
You must be signed in to change notification settings - Fork 27
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
Fix pending root event emission #80
Conversation
Why was this run canceled ? |
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 think it makes less clear when a revoke is invoked. @julien-devatom wdyt?
Yes exactly, you miss the information that the pending value is revoked. So for this reason, I'm against this refactoring. |
This information is ambiguous though, because trigerring What is important is to be able to track the changes of the values of the pending root. Adding an event for the special case of the Also, don't miss the fact that this PR also fixes the fact that no events was emitted for the pending root being deleted in |
This is a good point actually but the opposite is true as well? How do you know when someone revoke a root or that the root has been consumed (everyone has claimed their rewards) and then reset to 0 |
Yes it's true, you can't tell them apart. And you also can't tell if everyone has claimed their reward, because that information is not available (it's in the hash). So my point is that we should not try to add events that make it look like this information can be retrieved |
Should we keep that PR open @QGarchery @julien-devatom ? |
I'm closing it since this is discussed & handled in the PR #83 |
Fixes:
Also unifies two events that were about the pending root update. Now the pending root value are always equal to the values in the last
PendingRootSet
event