Skip to content

feat(chainspec): add TempoHardfork::T4#3427

Open
decofe wants to merge 6 commits intomainfrom
rusowsky/feat-t4-hardfork
Open

feat(chainspec): add TempoHardfork::T4#3427
decofe wants to merge 6 commits intomainfrom
rusowsky/feat-t4-hardfork

Conversation

@decofe
Copy link
Copy Markdown
Member

@decofe decofe commented Apr 2, 2026

Adds T4 variant to TempoHardfork enum, t4_time field to TempoGenesisInfo, t4Time to dev genesis and xtask genesis generator, and syncs tempo.nu hardfork list (was also missing T3).

also updates it tests to use a helper that auto-updates when new hardforks are created, rather than requiring manual additions for new variants

Prompted by: rusowsky

Co-Authored-By: 0xrusowsky <90208954+0xrusowsky@users.noreply.github.com>
Amp-Thread-ID: https://ampcode.com/threads/T-019d4cfa-4f4f-715f-a0a8-6aa7bbf664cc
decofe and others added 5 commits April 2, 2026 07:17
Co-authored-by: 0xrusowsky <90208954+0xrusowsky@users.noreply.github.com>
Amp-Thread-ID: https://ampcode.com/threads/T-019d4cfa-4f4f-715f-a0a8-6aa7bbf664cc
Tests that simulate pre-T1A/T1B/T1C environments by stripping fork
times from test-genesis.json were not removing t4Time, so T4 stayed
active and broke the pre-fork invariants.

Co-Authored-By: 0xrusowsky <90208954+0xrusowsky@users.noreply.github.com>
Amp-Thread-ID: https://ampcode.com/threads/T-019d4cfa-4f4f-715f-a0a8-6aa7bbf664cc
Replaces manual removal of individual fork times with a single helper
that walks TempoHardfork::VARIANTS and removes all forks after the
given cutoff. New hardforks no longer require updating these tests.

Co-Authored-By: 0xrusowsky <90208954+0xrusowsky@users.noreply.github.com>
Amp-Thread-ID: https://ampcode.com/threads/T-019d4cfa-4f4f-715f-a0a8-6aa7bbf664cc
Same pattern — t4Time wasn't disabled, so the node wasn't actually
running pre-T1C.

Co-Authored-By: 0xrusowsky <90208954+0xrusowsky@users.noreply.github.com>
Amp-Thread-ID: https://ampcode.com/threads/T-019d4cfa-4f4f-715f-a0a8-6aa7bbf664cc
Co-Authored-By: 0xrusowsky <90208954+0xrusowsky@users.noreply.github.com>
Amp-Thread-ID: https://ampcode.com/threads/T-019d4cfa-4f4f-715f-a0a8-6aa7bbf664cc
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.

3 participants