Skip to content
Monpediaby Unity Nodes
ClosedPull Request

Remove the leftover MIP-8 dual-db migration code from the runloops

by Chen-YifanCreated Oct 6, 2026category-labs/monad

ReferencesMIP-8

Every chain is past the MIP-8 forkpoint, and the slot-to-page migration is done offline for replay Monad: it stops at the cutoff, the operator loads a snapshot into a page-encoded timeline and promotes it with monad-mpt, then replay resumes on the page db. No runloop ever executes against two dbs, so the online mirror that dual-wrote each block to a secondary timeline is dead code.

  • runloop_monad_ethblocks: drop the secondary_db parameter, the for_each_db dual writes and the mirror half of the state-root log. Keep the encoding-vs-revision assert at the cutoff; its message now points to the offline migration.
  • commit_block: drop the secondary db and the canonical/other dual commit; it is one builder and one commit. Rename the files from commit_block_migration to commit_block to match.
  • BlockState: drop the secondary cross-check db.
  • main.cpp: stop opening the secondary timeline; a leftover one is ignored.
  • Remove test_page_storage_migration, which only tested the dual write.