-
Notifications
You must be signed in to change notification settings - Fork 74
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
Send solver competition info to api from driver #193
Conversation
// TODO: we don't have access to this and there is no guarantee there is one such block | ||
competition_simulation_block: 0, |
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.
Regarding this TODO and the one below - do you think it makes sense to return this along with the simulations that we already do?
Specifically we can add a eth_getBlockNumber(latest)
to the request batch and return the computed calldata along with the simulation result that computes the gas used.
You mentioned below that some refactoring to make this happen, I'm not sure if this is what you had in mind.
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.
For both the todos we need a little bit of refactoring yeah. The reason here it doesn't completely work is that we split up over multiple batches if there are too many simulations. These batches could happen in different block numbers. (Really we don't even have a guarantee that a batch always happes in the same block either.)
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.
Really we don't even have a guarantee that a batch always happes in the same block either.
Oh yeah, that's a good point. It may be nice as an indicative value anyway even if its not accurate.
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.
LGTM.
Codecov Report
@@ Coverage Diff @@
## main #193 +/- ##
==========================================
- Coverage 64.86% 64.74% -0.12%
==========================================
Files 190 190
Lines 38966 39033 +67
==========================================
- Hits 25275 25273 -2
- Misses 13691 13760 +69 |
Part of #127 .
There are some minor todos that I don't want to be blocking the main part of this PR so I want to merge this part first.
Test Plan
CI and manual verification that this works