Skip to content

feat(chainspec): set Jade fork activation timestamps - #51

Merged
panos-xyz merged 1 commit into
mainfrom
feat/jade-fork-activation
Mar 16, 2026
Merged

panos-xyz merged 1 commit into
mainfrom
feat/jade-fork-activation

Conversation

@panos-xyz

@panos-xyz panos-xyz commented Mar 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Set Jade fork activation timestamp for Hoodi (chain 2910): 1774418400 (2026-03-25 06:00 UTC)
  • Set Jade fork activation timestamp for Mainnet (chain 2818): 1775628000 (2026-04-08 06:00 UTC)
  • Added corresponding hardfork activation tests for both networks

Test plan

  • cargo test -p morph-chainspec — all 32 tests passed

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features

    • Added Jade hardfork support to network configuration.
  • Tests

    • Added test coverage for Jade hardfork activation verification across networks.

Hoodi (chain 2910): 1774418400 (2026-03-25 06:00 UTC)
Mainnet (chain 2818): 1775628000 (2026-04-08 06:00 UTC)

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@coderabbitai

coderabbitai Bot commented Mar 13, 2026 •

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 8a77dda7-2019-4901-bf64-0e70ffe45b17

📥 Commits

Reviewing files that changed from the base of the PR and between 5843ee6 and 638c453.

📒 Files selected for processing (4)
  • crates/chainspec/res/genesis/hoodi.json
  • crates/chainspec/res/genesis/mainnet.json
  • crates/chainspec/src/morph.rs
  • crates/chainspec/src/morph_hoodi.rs

📝 Walkthrough

Walkthrough

A new hardfork timestamp parameter "jadeTime" was added to two genesis configuration files (hoodi and mainnet) with distinct values, and corresponding test cases were added to verify the Jade hardfork activation boundaries for each network.

Changes

Cohort / File(s) Summary
Genesis Configuration Updates
crates/chainspec/res/genesis/hoodi.json, crates/chainspec/res/genesis/mainnet.json
Added "jadeTime" timestamp key to the config section of each genesis file with network-specific values (1774418400 for hoodi, 1775628000 for mainnet).
Jade Hardfork Activation Tests
crates/chainspec/src/morph.rs, crates/chainspec/src/morph_hoodi.rs
Added boundary tests for Jade activation, verifying that is_jade_active_at_timestamp() correctly returns false before the activation timestamp and true at/after the activation timestamp.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Possibly related PRs

Suggested reviewers

  • anylots

Poem

🐰 Hop, hop, jade's here to stay,
New timestamps light the way,
Genesis files now shine so bright,
With activation tests done right!
The chain progresses, all is well,
New hardforks have a tale to tell! ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately and concisely describes the main change: setting Jade fork activation timestamps across multiple chainspec configurations and adding corresponding tests.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/jade-fork-activation
📝 Coding Plan
  • Generate coding plan for human review comments

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@chengwenxi

Copy link
Copy Markdown
Contributor

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

🤖 Generated with Claude Code

- If this code review was useful, please react with 👍. Otherwise, react with 👎.

@panos-xyz
panos-xyz merged commit daeebbb into main Mar 16, 2026
8 checks passed
@panos-xyz
panos-xyz deleted the feat/jade-fork-activation branch March 16, 2026 02:36
panos-xyz added a commit that referenced this pull request Nov 24, 2026
… restarts

Extend PR 233's series-churn fix from State & History Growth to the rest of
the morph-reth Grafana dashboard so long time ranges (30d/60d/90d) render
accurately when pod restarts or redeploys change the instance label:

- Snapshot pie charts and bar gauge (#3, #45, #47, #51, #104): switch to
  instant queries and aggregate with max by (service, ...) (two-level sum/max
  for DB Pages) so historical dead instances no longer duplicate slices.
- Broken aggregations (#39 DB Average Commit Time, #41 DB Average Transaction
  Open Time, #120 CPU, #40/#62/#64 heatmaps): compute weighted averages via
  sum(rate(sum)) / sum(rate(count)) instead of summing/averaging per-series
  ratios, fix CPU from avg(rate(...[1m])) to sum(rate(...[$__rate_interval])),
  and use max for peak latency heatmaps.
- Unaggregated rate/increase panels (17 panels, e.g. Block Import Rate, Engine
  Tree, Proof History, TxPool, P2P) and rate(sum)/rate(count) panels (9 panels):
  aggregate with sum by (service[, segment]) to eliminate multi-hour 50% dips
  and duplicate legends at restart boundaries.
- Raw gauge sum-by-service panels (14 panels including Node Storage & Height,
  DB Growth, Static Files Growth, State Size, History Size, RPC Active
  Connections): replace raw sum by (service) with max by (service) or
  two-level sum by (service) (max by (service, table|segment)) to eliminate
  2x spikes during restart overlap.
- Remaining unaggregated gauge/summary/stat timeseries panels: wrap with
  max by (service, <legend labels>) (avg by (service) for avg_over_time) to
  preserve continuous single lines and clean legends across restarts.

Verified all 258 PromQL expressions against live Prometheus 3.5.0 (0 errors)
and compared before/after query outputs via Grafana 13.3.1 over a 30-day
synthetic dataset with 5 instance restarts and rolling overlap.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants