-
Notifications
You must be signed in to change notification settings - Fork 2
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: remove expired check in checkUpkeep
#98
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #98 +/- ##
==========================================
- Coverage 99.02% 97.20% -1.82%
==========================================
Files 2 2
Lines 205 215 +10
Branches 33 37 +4
==========================================
+ Hits 203 209 +6
- Misses 2 6 +4
|
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.
good shuffle of condition checks for triggering clean up when another normal action will get queue
nice test addition test_When_QueueHasInternalExpiredTxs
. not sure if that ever will happen in prod tho, otherwise i think we have a bigger problem w/ the keeper system allowing an internal tx being expired
imagine that actually it happens should not at some point actually happen also a storage clean-up, meaning delete queuedTx;
? otherwise when calling _executeQueuedTx
will be trying to exec an expired payload, no?
i fixed this by only returning lmk if you agree :D |
hmm what do you think of this
|
i like those methods as a simple solution is that those internal variables used in |
i think is a valid solution really nice test flow in |
closes #88
since cleaning the queue is permissionless, there is no need to pass it through the timelock. it can simply be called by the vmodule while queueing up a tx