Skip to content

Database History migration tool#121

Merged
alecps merged 30 commits intocelo4from
mcortesi/dbplay
Jun 10, 2024
Merged

Database History migration tool#121
alecps merged 30 commits intocelo4from
mcortesi/dbplay

Conversation

@mcortesi
Copy link

@mcortesi mcortesi commented Apr 30, 2024

Tools that migrates the database history

For now:

Migrate ancients database into a new copy of it with following transformations:

  1. Remove IstanbulExtraData.AggregatedSeal from headers to make hashing header same as ethereum
  2. Remove Randomness and EpochSnarkData from BlockBodies

Fixes celo-org/celo-blockchain-planning#255

Base automatically changed from palango/migration-tool to celo4 May 7, 2024 13:35
@mcortesi mcortesi force-pushed the mcortesi/dbplay branch from 578c06a to c088359 Compare May 9, 2024 20:25
@alecps
Copy link

alecps commented May 13, 2024

This is just pending a final test on the mainnet datadir which has taken longer than expected to set up due to issues with the pod restarting and running out of memory

@alecps alecps self-requested a review May 14, 2024 22:46
@github-actions
Copy link

github-actions bot commented Jun 4, 2024

This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Jun 4, 2024
@github-actions github-actions bot closed this Jun 9, 2024
@alecps alecps reopened this Jun 10, 2024
@alecps alecps merged commit b9018bc into celo4 Jun 10, 2024
@alecps alecps deleted the mcortesi/dbplay branch June 10, 2024 18:36
@alecps alecps restored the mcortesi/dbplay branch June 10, 2024 18:39
@alecps alecps removed the Stale label Jun 10, 2024
@alecps
Copy link

alecps commented Jun 10, 2024

@carterqw2 I accidentally merged this without squashing 🙄

alecps pushed a commit that referenced this pull request Jun 11, 2024
alecps pushed a commit that referenced this pull request Jun 11, 2024
piersy added a commit that referenced this pull request Feb 17, 2026
Disable BPO/Osaka blob fee formula for Celo L2 chains (mainnet,
sepolia, chaos) until Jovian hardfork, matching the gating in
celo-kona PR #121. For non-Celo chains, BPO remains enabled by
default (preserving upstream behavior).
piersy added a commit that referenced this pull request Feb 17, 2026
* op-node/derive: Gate BPO activation in L1InfoDeposit per L2 chain

Disable BPO/Osaka blob fee formula for Celo L2 chains (mainnet,
sepolia, chaos) until Jovian hardfork, matching the gating in
celo-kona PR #121. For non-Celo chains, BPO remains enabled by
default (preserving upstream behavior).

* Update op-geth

Updates op-geth to a version that specifies CeloChaosChainID

* Fix TestBlobBaseFeeFromSepolia: use stripBPOActivations and inline header data

The test was failing because it computed BlobBaseFee using the full
SepoliaChainConfig (which includes BPO activation times), but the
expected value was the Prague-era blob fee from the actual Celo Sepolia
L2 block (derived before BPO was known).

Fix by:
- Using stripBPOActivations on the config, which is exactly what
  the production code does for Celo chains
- Inlining the header data (ExcessBlobGas, Time) instead of making
  a live RPC call, so the test runs in CI's -short mode
- Removing unused context and ethclient imports

* ci: Skip OP mainnet upgrade tests not relevant to Celo

The contracts-bedrock-tests-upgrade and coverage-upgrade tests fork OP
mainnet to test OP-specific upgrade paths. These fail on the Celo fork
because ForkLive.s.sol is out of sync with upstream (the
DelayedWETHProxy deployment lookup fails).

Since these tests are not relevant to Celo chains, skip them:
- Comment out contracts-bedrock-tests-upgrade workflow jobs
- Use coverage-lcov instead of coverage-lcov-all (which includes
  upgrade coverage)

---------

Co-authored-by: Karl Bartel <karl.bartel@clabs.co>
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