-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[gas] generate delta when upgrading the gas schedule #13391
Conversation
⏱️ 1h 6m total CI duration on this PR
🚨 1 job on the last run was significantly faster/slower than expected
|
e83d2bf
to
0ce7761
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #13391 +/- ##
=========================================
- Coverage 58.4% 58.4% -0.1%
=========================================
Files 823 822 -1
Lines 197664 197521 -143
=========================================
- Hits 115603 115413 -190
- Misses 82061 82108 +47 ☔ View full report in Codecov by Sentry. |
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.
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.
The overall implementation looks good to me, thanks!
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.
Was wondering how. does the gas schedule locator work? seems that it could be an existing URL or a local file. Where can those items be stored? I don't quite see how that option would work in practice.
@runtian-zhou this is something Perry and I discussed extensively. I'll share more details later, but the gist is that
|
Got it! So we need more automation on the network repo to generate snapshots of different network automatically. |
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
|
This comment has been minimized.
This comment has been minimized.
✅ Forge suite
|
This comment has been minimized.
This comment has been minimized.
✅ Forge suite
|
Description
This introduces some major improvements to the gas schedule upgrade process
gas_schedule::set_for_next_epoch_check_hash
interface to help establish a known base for upgrades, preventing unintended changes.generate-gas-schedule
to create a snapshot of the gas schedule based on the values defined in Rust, stored to a json file.DefaultGas
,DefaultGasWithOverride
etc.) into a single one namedGas
for clarity.old
andnew'. Valid values are
,
or
current` (using the Rust-defined values).new
is required butold
is optional. It however not recommended you skipold
for a real release. It's kept mainly for testing and easier migration.old
is not specified.Here's how the diff looks like
Type of Change
Which Components or Systems Does This Change Impact?
How Has This Been Tested?
TBA
Key Areas to Review
gas_schedule.move
:fun set_for_next_epoch_check_hash
aptos-release-builder
: changes to governance proposal generation, emitting deltaChecklist