How Shadowfork checks its EVM against the QIE node, transaction by transaction.

Verification

npx shadowfork verify --count 40

Method

  1. Sample recent mainnet transactions, preferring different (target, selector) shapes.
  2. Re-execute each one independently: archive state at the parent block, every earlier transaction of the block replayed first, no trace taken from the node.
  3. Compare with the node's debug_traceTransaction callTracer, frame by frame: type, from, to, input, output, error, value, gas used.
  4. Compare status and every log with the receipt, and the gas Shadowfork bills with receipt.gasUsed.

Results

The latest run: 40 of 40 transactions identical, 89 call frames compared. The data is in docs/verification/engine-lazy.json.

Offline tests

npm test replays mainnet responses recorded in fixtures/rpc with no network: a QIEDEX swap and a factory that creates two contracts are matched frame by frame, and a negative control shows that standard Shanghai rules disagree with QIE on contract creation gas. The QUSDC regression cases run the same way.

Gas audit

npx shadowfork gas-audit --blocks 30000 --max 150

Each transaction is re-executed to measure the gas it needed, then compared with what QIE billed. In the last run, 135 of 150 transactions were billed the half-limit floor, and 63 percent of billed gas paid for no work.