-
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
Make snapshot reverting transactions cheaper #157
Make snapshot reverting transactions cheaper #157
Conversation
… need fixing for running solidity coverage
Codecov Report
@@ Coverage Diff @@
## main #157 +/- ##
==========================================
+ Coverage 53.33% 53.39% +0.05%
==========================================
Files 338 338
Lines 43025 43061 +36
Branches 366 366
==========================================
+ Hits 22948 22993 +45
+ Misses 17650 17641 -9
Partials 2427 2427
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
Go side of things look good.
groupSignature_; | ||
bClaims_; |
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 this is because of a linter warning for unused variables there might be a different workaround. Possibly removing the name from the signature, or replacing with a _
:
function checkBClaimsSignature(bytes calldata, bytes calldata)
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.
Yep, this is to silence the linter. Unfortunately, we cannot change the signature (both name and variables) because this Mock needs to conform to the ISnapshots
solidity interface.
Scope
What is changing with this PR?
This PR is reorganizing the snapshots method to revert earlier in case of re-submission of the same snapshots and doing some housekeeping for better organization. The re-org will also improve the messages we see on the golang side when multiple validators try to do the snapshot.
Gas used by a reverted transaction by doing re-submission of same snapshot data (without the full ring buffer):
Before this PR: 210266
After this PR: 53148