refactor(chainspec): rename jadeTime to jadeForkTime#80
Conversation
…compatibility Align the Jade hardfork field name with go-ethereum's `jadeForkTime` convention, ensuring genesis JSON files are interchangeable between morph-reth and go-ethereum.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (7)
👮 Files not reviewed due to content moderation or server errors (2)
📝 WalkthroughWalkthroughThe Jade hardfork timestamp field in Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 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 |
chengwenxi
left a comment
There was a problem hiding this comment.
LGTM. Clean rename, serde camelCase mapping is correct, all references updated consistently.
Summary
jadeTimetojadeForkTimeacross all genesis JSON files and Rust source codejadeForkTimefield naming convention, ensuring genesis files are interchangeable between morph-reth and go-ethereumChanges
crates/chainspec/src/genesis.rs: struct fieldjade_time→jade_fork_time(serde auto-renames tojadeForkTime)crates/chainspec/src/spec.rs: update field accesscrates/chainspec/res/genesis/mainnet.json: JSON key renamecrates/chainspec/res/genesis/hoodi.json: JSON key renamecrates/node/tests/assets/test-genesis.json: JSON key renamecrates/engine-api/src/validator.rs: test helper JSON keycrates/node/src/test_utils.rs: string literals and doc commentsTest plan
cargo check -p morph-chainspec -p morph-engine-api -p morph-nodepasses"jadeTime"references in crates/Summary by CodeRabbit