Skip to content

ActivationHeights stops at fingerroot500; five later forks have their heights written inline #214

Open

Description

@SDL-A1

Migrated from SergioDemianLerner/rustock#214 (issue by @SDL-A1, 2026-09-29).
Original: SergioDemianLerner/rustock#214

ActivationHeights (crates/core/src/config.rs:24) enumerates five activations:

pub orchid: u64,
pub wasabi100: u64,
pub papyrus200: u64,
pub iris300: u64,
pub fingerroot500: u64,

rskj's mainnet config has five more after the last of those:

hop400        4,598,500
hop401        4,976,300
fingerroot500 5,468,000
arrowhead600  6,223,700
arrowhead631  6,549,300
lovell700     7,338,024

This is not a consensus gap

The later forks are implemented. Their heights are simply written where they are used rather than declared centrally:

  • crates/execution/src/bridge/getters.rs:1405 — 7_338_024u64; // lovell700
  • crates/execution/src/remasc.rs:419 — RSKIP415, arrowhead600
  • crates/execution/src/executor.rs:1218 — arrowhead600 spec overrides

So behaviour is correct today. What is missing is a single place that says when each fork activates.

Why it is worth fixing

A height repeated at call sites drifts. 7_338_024 appears as a literal; if the activation ever needed correcting, every occurrence would have to be found. The existing table exists precisely to stop that, and half the forks are outside it.

Nothing can enumerate the forks. Code that wants to reason about activations generally — a chain-config dump, a compatibility report, anything keying decisions off fork boundaries — can only see five of ten.

It came up designing difficulty checkpoints. A checkpoint wants to key off a known activation height, and there is no complete list to key off.

Suggested

Extend ActivationHeights with hop400, hop401, arrowhead600, arrowhead631, lovell700 for mainnet and testnet, and replace the inline literals with references. Purely mechanical, and the tests that pin current behaviour should be unchanged by it.

Worth checking testnet's values against config/testnet.conf at the same time — rustock's table has testnet activations for only the same five.

Activity

  1. added
    enhancement
    on Nov 13, 2026
  2. SDL-A1 commented on Nov 18, 2026

    @SDL-A1
    CollaboratorAuthor

    Partially addressed, so leaving this open.

    ActivationHeights has gained hop400, but the rest of the list is still absent: hop401, arrowhead600, arrowhead631 and lovell700.

    Note the later upgrades do exist as RskNetworkUpgrade variants in crates/execution/src/hardfork.rs — Lovell700, Reed800 and Vetiver900 are all there and in use. So the gap is now specifically ActivationHeights in crates/core/src/config.rs lagging behind the hardfork ladder, which is a narrower and more confusing problem than when this was filed: two places describe the same schedule and they disagree.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions