-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Update gas estimation changes for UseCaseAware block reordering (AIP-68) #14669
Update gas estimation changes for UseCaseAware block reordering (AIP-68) #14669
Conversation
first, | ||
last - first, | ||
ledger_info.ledger_version.0, | ||
user_use_case_spread_factor.is_some(), |
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.
Should we also have a local config here that can act as a kill switch if the gas estimates seem off?
eb3ec07
to
a2297cd
Compare
@bchocho added config to disable |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
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
api/src/context.rs
Outdated
) { | ||
Ok((prices_and_used, block_end_infos, majority_usecase_fraction)) => { | ||
let is_full_block = | ||
if majority_usecase_fraction.map_or(false, |fraction| fraction > 0.5) { |
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.
nit: consistency usecase vs use_case
a2297cd
to
e4dc9b5
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
(cherry picked from commit 25499ae)
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation and see the Github Action logs for details |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
✅ Forge suite
|
✅ Forge suite
|
✅ Forge suite
|
(cherry picked from commit 25499ae) Co-authored-by: igor-aptos <[email protected]>
Description
AIP-68 implements spreading out of potentially conflicting transactions within a block. Consequence is that workload from single module doesn't increase gas prices for unrelated modules.
Updating gas estimation logic to not treat block as full if majority of block is from a single contract.
Type of Change
Which Components or Systems Does This Change Impact?
How Has This Been Tested?
will run workload sweep forge test and check gas estimation.
Key Areas to Review
change to block_min_inclusion_price
Checklist