Skip to content

Verify updates to GasSchedule against native schedule #321

@supra-yoga

Description

@supra-yoga

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:

  1. 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.
  2. 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
  3. 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.

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions