chore: uncomment GoldenWeek and Xxx in ForkUpgradeParams#6728
chore: uncomment GoldenWeek and Xxx in ForkUpgradeParams#6728gorusys wants to merge 1 commit intoChainSafe:mainfrom
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (3)
WalkthroughTwo network upgrade height fields (UpgradeGoldenWeekHeight and UpgradeXxxHeight) are uncommented and finalized in the ForkUpgradeParams struct. The Rust implementation is updated to populate these fields from chain configuration, and corresponding OpenRPC schema definitions are updated to reflect these additions. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Signed-off-by: gorusys <goru.connector@outlook.com>
|
Thanks for looking into it, but it's not a good issue for external contributors; the RPC snapshots are the ones listed in https://docs.forest.chainsafe.io/developers/guides/rpc_test_snapshot which require access to internal infrastructure. |
Summary of changes
Uncomment
upgrade_golden_week_heightandupgrade_xxx_heightinForkUpgradeParamsand in theTryFrom<&ChainConfig>implementation (nv28 follow-up from the skeleton in #6706). OpenRPC specs and RPC snapshots are updated so the API and tests reflect the new fields.Changes introduced in this pull request:
upgrade_golden_week_height: ChainEpochandupgrade_xxx_height: ChainEpochin theForkUpgradeParamsstruct insrc/rpc/methods/state.rs.upgrade_golden_week_height: get_height(GoldenWeek)?andupgrade_xxx_height: get_height(Xxx)?in theTryFrom<&ChainConfig>implementation forForkUpgradeParams.UpgradeGoldenWeekHeightandUpgradeXxxHeightto theForkUpgradeParamsschema indocs/openrpc-specs/v0.jsonanddocs/openrpc-specs/v1.json(properties and required array).src/rpc/snapshots/forest__rpc__tests__rpc__v0.snapandsrc/rpc/snapshots/forest__rpc__tests__rpc__v1.snapso theForkUpgradeParamsschema includes the new fields and they pass the openrpc snapshot tests.Reference issue to close (if applicable)
Closes #6707
Other information and links
Height::GoldenWeekandHeight::Xxxare already defined insrc/networks/mod.rsand used in chain configs (mainnet, calibnet, butterflynet, devnet).Change checklist
Outside contributions
Summary by CodeRabbit