forked from aptos-labs/aptos-core
-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
Description
Description
PR #292 aims to deliver the tooling required to update an on-chain GasSchedule. This tooling was put to use during QA testing of SMR-Moonshot v10.0.4 and an issue was detected as described here. The following changes must be made to the #292 to ensure stability when upgrading GasSchedule:
The tool must ensure that:
- All gas parameters present in the native schedule for the environment are at the same (or lower) version as a newly generated on-chain schedule are included in the generated schedule.
- Compare the entries of the generated schedule to the keys of the native schedule of the binary used to generate the schedule, where said keys belong to a version equal to or less than the version of the generated schedule
- The tool must also refuse to generate the schedule if the requested gas feature version is greater than the native gas feature version to reduce the likelihood of it being unable to detect missing entries.