-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Create new simulation using the actual gas price service #2538
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
Conversation
…data_tests.rs Co-authored-by: Rafał Chabowski <88321181+rafal-ch@users.noreply.github.com>
…-be-received-out-of-order
…to feature/init-task-for-v1-gas-price-service
…ew-gas-price-simulation
…ew-gas-price-simulation
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.
Had a quick look and have some initial questions. I'll get back to this when I can find the time but don't count on me as I have a lot on my plate right now.
|
||
let gas = gas_used; | ||
let new_gas_price = self.shared_algo.next_gas_price(); | ||
let gas_price_factor = 1_150_000; // TODO: Read from CLI/config |
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.
To be done now or in a follow-up?
|
||
if record.l1_block_number != 0 { | ||
tracing::debug!("adding new DA info: {:?}", record); | ||
// TODO: Check if these are generated correctly. |
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.
Also 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.
Why are we doing executor changes in this PR?
#[async_trait] | ||
impl L2BlockSource for SimulatedL2Blocks { |
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.
Unrelated to this PR; Do we still need async_trait
? These are our traits right? We shouldn't need the legacy async_trait
macro anymore since async functions in traits have been stabilized.
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.
you're right
Closing in favor of: |
## Linked Issues/PRs <!-- List of related issues/PRs --> Needed for #2538 ## Description <!-- List of detailed changes --> These need to be exposed so we can move the simulation to the fuel-core-utils ## Checklist - [ ] Breaking changes are clearly marked as such in the PR description and changelog
## Linked Issues/PRs <!-- List of related issues/PRs --> Needed for FuelLabs/fuel-core#2538 ## Description <!-- List of detailed changes --> These need to be exposed so we can move the simulation to the fuel-core-utils ## Checklist - [ ] Breaking changes are clearly marked as such in the PR description and changelog
Linked Issues/PRs
closes #2181
Description
This PR adds a new simulator (a successor to the
gas-price-analysis
bin).It includes the ability to run
single
simulations:or
optimization
simulations which tries to find goodp
andd
values for the given dataset:Both will produce and chart of the simulated data a la:

and print a summary:
The goal is to use this with larger datasets to select appropriate p/d values for the V1 gas price algorithm/service
Checklist
Before requesting review
After merging, notify other teams
[Add or remove entries as needed]