Skip to content

Run reexec_all over testnet with the census instrumentation: every mainnet result is half a claim #412

Open

Description

@SDL-A1

The retroactive-guard campaign's mainnet half is complete: 9,429,718 blocks, 106 segments, 28 census counters, both positive controls firing. Testnet has had no equivalent run, and without it every result is half a claim.

Why it blocks real work

The RSKIP proposing removal of DUPN, SWAPN and TXINDEX cannot merge its Part 2 without this. Mainnet is settled — SWAPN executed once, at #996,053, and replaying that block with the opcode removed gives an identical state root, gasUsed and receipt set. Testnet is not settled, and the mainnet occurrence was a mis-addressed ERC-20 transfer whose first calldata octet is 0xa9. Nothing about that is mainnet-specific, so the expectation should be that testnet also has occurrences, each needing the same two-way replay rather than a count.

Two obstacles

1. reexec_all is hard-wired to mainnet. It builds BlockProcessor::new(RskHardforkConfig::mainnet(), …) and uses ChainConfig::mainnet() for the genesis allocation. It needs a network option before it can be pointed at testnet.

2. Neither mainnet positive control works on testnet, and a campaign that cannot validate its instrument is worthless:

Control On testnet
BR-086 (funds-migration end age) different heights; window must be re-derived
EVM-023a (pre-RSKIP-136 precompile charge) empty — bahamas is at height 0 on testnet, so it can never fire

A testnet run therefore needs its own control. The natural candidate is EVM-023, whose branch is known occupied on testnet at #808,484: a constructor calls the Bridge with a selector that is not a Bridge method, which post-RSKIP-88 throws, and pre-RSKIP-197 that throw kills the caller with all its gas. A testnet run reporting zero there has a broken instrument, not a clean window.

Scope

Below testnet iris300 (2,060,500) settles the opcode question. The whole chain settles the rest of the catalogue's testnet half.

Depends on #411

Without segments this is one sequential pass from genesis — roughly 3–5 hours at observed rates, against a parallel run with them. #411 also depends on #410, so the order is #410 → #411 → this.

Also worth carrying

  • the three high-water marks (deepest CALL frame, EVM memory, largest RETURN) for testnet, for comparison with mainnet's 401 / 422,944 octets / 24,573 octets
  • the gap record, so the testnet segment set is validated as it is measured

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