Skip to content

Build a segbuild segment set for testnet: the chain has blocks but no state and no segments #411

Open

Description

@SDL-A1

Testnet has its whole block history imported and verified, but no trie state and no segments. That makes any historical replay of testnet a single sequential pass from genesis, where mainnet's 106 segments let workers run in parallel.

Why it is wanted

Every result from the retroactive-guard campaign is half a claim without testnet: several windows are empty on mainnet but occupied on testnet, each below its own activation heights. EVM-023 is the worked example — zero on mainnet, known occupied on testnet at #808,484 — so a mainnet zero proves nothing there.

The immediate consumer is #412.

What exists

  • the full testnet block history, imported and verified (diverged 0, unverifiable 0), head Feat/trie gc #8,160,019
  • no trie nodes: the import brought blocks and metadata only
  • no segments

What is needed

A segment set for testnet, at minimum covering below testnet iris300 (2,060,500), ideally the whole chain. It has to be built from genesis, since there is no state to seed from — the same shape as mainnet's first segment, which builds the genesis allocation rather than reading it.

Depends on #410

Build this with the shared-cache defect still present and the testnet segments inherit it, exactly as 77 of mainnet's 106 did. #410 first, then this.

Notes

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions