Repository navigation
Conversation
Adding funding.json file required to apply for retropgf
github: use step-security replacement for tj-actions/changed-files
Setting `open-pull-requests-limit: 0` prevent version updates but should keep the security scans and updates according to https://docs.github.com/en/code-security/dependabot/dependabot-security-updates/configuring-dependabot-security-updates#overriding-the-default-behavior-with-a-configuration-file > If you only require security updates and want to exclude version > updates, you can set open-pull-requests-limit to 0 in order to prevent > version updates for a given package-ecosystem.
…kchain-public (#395) * Build op-node using docker-bake and push to devopsre/celo-blockchain-public registry * Set-Tags
It needs a kona version and I'm not clear what this is, but we don't actually use op-challenger so simply disabling it seems to be a good solution.
* Test attest images * Trailing line * Another job * auth * Release workflow attestation job
The op config set this to a private URL that we couldn't access, instead we now set this to now be the MAINNET_RPC_URL which is defined as a project env var.
ethereum-optimism/circleci-utils is private to Optimism's org. Point both continuation configs at the public karlb/[email protected] fork so celo-org CI can resolve the orb.
gomod: Fix build after op-geth update Remove fee currency context from call of NewEVMBlockContext
These clash with the check in celo-org/op-geth@2a740e5 and are safe to ignore, since the regolith fork is always enabled on Cel2 chains, so that we'll never migrate to it.
op-e2e: Enable Cel2 in e2e tests
* feat(batcher): multi-frame altda channels * docs(batcher): add documentation for DaType and txData.daType * docs: fix NextTxData comment --------- Co-authored-by: Samuel Laferriere <[email protected]>
* test(altda): add test for altda->ethda failover * feat(batcher): altda->ethda failover when altda is down * chore: fix typos * fix(fakeDAServer): handlePut was still handling put when in failover mode * Fix logs --------- Co-authored-by: Samuel Laferriere <[email protected]>
* Add Prometheus metrics for AltDA failover in Batcher * Fix calls of RecordBatchDaType * Revert deleted comment * Add metrics for total stored batch size * Fix condition for RecordBatchDaType and RecordBatchDataSizeBytes * Add missing namespace to prometheus definition * Fix the amount of batch sizes recorded for DA * Unify recordings of size of batch to be stored * Improve Prometheus help text
…sion (#379) * fix(batcher): altda parallel submitted blobs respect strict holocene order (#21) test(e2e): new altda e2e test for concurrent blob submissions to maintain new holocene strict ordering rules test(batcher): add altda unit tests for unhappy failure cases (except channel timeout) test(batcher): fix flaky driver tests + speed them up test(batcher): robustify batcher driver altda tests fix(batcher): altda concurrent blob responses are reordered to respect holocene strict ordering rules docs: fix typos and add documentation comments for some batcher public methods test(op-alt-da): fix MockDAClient.DeleteData decrement semantic chore(batcher): move channel failover behavior from TxFailed to AltDASubmissionFailed The failover logic in the failover feature commits was aded on TxFailed, as the separate function AltDASubmissionFailed didn't exist yet. This change makes it much cleaner as a tx having failed cannot lead to a failover given... since that would come from an ethereum issue. fix(batcher): bug in sendTransaction chore(test-logger): fix test logger.Crit which wasn't getting flushed test(batcher): fix altDASetup w new channel config DaType was added, so needed to change config to use DaTypeAltDA style: wrap errors style(damock): dont explicitly initialize to 0 We make use default values instead docs(batcher-test): document why channel timeout test is left unimplemented docs(batcher): fix todos in batcher readme chore: make lint-go-fix docs(batcher): fix readme typo * Change test to write a log instead of stdout --------- Co-authored-by: Samuel Laferriere <[email protected]>
Add default to switch for lint Allow to override with flags the celo forks 22nd Jan 2026: Noted that we didn't need to set the PectraBlobScheduleTime flag, but now we do need to keep it as removing it would be a hardfork.
* isthmus: Update L1Block contract bytecode --------- Co-authored-by: Gastón Ponti <[email protected]> Co-authored-by: Gaston Ponti <[email protected]>
The test was configured with MaxFrameSize: 150 which was too small for the compressed block data (~291 bytes), causing 2 frames per block instead of 1. This doubled the AltDA Store count from the expected 5 to 10. Fixed by increasing MaxFrameSize to 400 to ensure each block fits in a single frame as the test intended.
Update the test to deploy a 65KB contract that exceeds Celo's increased 64KB MaxCodeSize limit. The previous 25KB test contract no longer triggers the max code size check. Changes: - Use PUSH3 (0x62) instead of PUSH2 to push the 3-byte size value - Update runtime size from 25KB to 65KB - Update init code offset from 0x0c to 0x10 (16 bytes)
Point op-core/superchain at celo-org/superchain-registry, which carries Celo's configs on top of upstream. Regenerated the superchain-configs.zip bundle (gitignored) and its committed .sha256.
Introduces the on-chain BatchAuthenticator, the first piece of the Espresso integration. Batchers authenticate batch commitments here; the contract emits BatchInfoAuthenticated events that the forthcoming derivation pipeline scans from L1 receipts to decide batch authenticity. Re-host of #443. Contract (src/L1/BatchAuthenticator.sol, semver 1.2.0): upgradeable L1 contract with two batcher modes selected by activeIsEspresso — an Espresso/TEE path (caller must be the active espressoBatcher AND the signature must verify against the EspressoTEEVerifier) and a fallback path (caller must be the SystemConfig batcher, no signature). Owner rotates the espressoBatcher; guardian-or-owner flips the active mode. The espressoBatcher history is an append-only OZ Checkpoints.Trace160 keyed by L1 block, with a same-block guard so rotations can't overwrite history. registerSigner is permissionless, delegating safety to the TEE verifier. Adds IBatchAuthenticator, ~1100 lines of unit/fork tests, and TEE verifier mocks. Deploy: DeployBatchAuthenticator (standalone) and DeployEspresso (also deploys the TEE/Nitro verifiers), both using the transient-admin → initialize → changeAdmin-to-shared-ProxyAdmin pattern. Dependencies: adds espresso-tee-contracts (v1.3.0) and openzeppelin-contracts-upgradeable-v5 submodules, plus OZ v5 remappings — the repo now carries OZ v4 and v5 side by side. Cross-cutting: OZ v5 ships its own proxy/Proxy.sol, so every "Proxy" artifact reference across deploy scripts and tests is path-qualified to "src/universal/Proxy.sol:Proxy", and the Go getCode cheatcode now resolves directory-qualified names. CI/tooling adjustments: BatchAuthenticator grandfathered into the floating-pragma allowlist, Espresso interfaces excluded from the interface-ABI check, justfile/CircleCI tweaks to avoid OOM and solc auto-detect issues, and regenerated ABI/storage/semver snapshots.
Add Espresso event-based batch authentication. Adds derivation-pipeline support for the Espresso BatchAuthenticator contract, gated by a new L2-timestamp hardfork, EspressoTime. Pre-fork, derivation is unchanged from upstream Optimism (batch accepted iff the L1 sender is the SystemConfig batcher). Post-fork, batches are authenticated against on-chain events instead. Authentication. A batch is accepted post-fork only if a BatchInfoAuthenticated(bytes32 commitment, address indexed caller) event for its commitment was emitted by the BatchAuthenticator within a 100-block backward lookback window, AND the batch tx's L1 sender equals that event's caller — binding each batch to the address that authenticated it. The commitment is keccak256(calldata) for calldata batches and keccak256(concat(blobHashes)) for blob batches. Using event scanning (not L1 state reads) keeps derivation compatible with the op-program fault-proof environment. CollectAuthenticatedBatches scans receipts over [ref-100, ref], walking backward by parent hash, so the result is a pure function of ref's hash (independent of L1 tip, timing, or cache state). The fork gate is evaluated against the L1 origin time of the enclosing block (mirroring ecotoneTime) to keep a stable decision per L2 epoch. Both the calldata and blob sources gate each batch through isBatchTxAuthorized; the altDA path is covered transparently as it wraps them. Config adds EspressoTime and BatchAuthenticatorAddress; Check() requires a non-zero authenticator address when EspressoTime is set.
… ecotone_time (#466) * refactor(derive): drop dead Espresso calldata authentication path The calldata data source is only reached pre-ecotone: OpenData routes to the blob source whenever ecotone is active (ref.Time >= ecotone_time). Every Celo chain sets ecotone_time = 0, and Espresso (espresso_time) activates strictly later, so the Espresso event-based batch-authentication branch that #457 folded into DataFromEVMTransactions could never fire on a real chain. Restore the calldata data source to its pre-Espresso form. calldata_source.go is byte-identical to before #457; #457 had split isValidBatchTx into a type/To-only check plus isAuthorizedBatchSender to serve the blob source's event-based path, which rippled a needless change into the calldata source. Reinstate the original 5-arg isValidBatchTx (composed from isBatchTxToInbox + isAuthorizedBatchSender) and point the blob source at isBatchTxToInbox. calldata_source_test.go is also restored except for one line: DataSourceConfig gained fields (rollupCfg, batchAuthCaches), so its literal must use named fields instead of positional. The blob source keeps Espresso event-based authentication and also handles plain calldata-carrying batcher txs post-ecotone, so no behaviour is lost. Delete the now-dead Espresso calldata test and move its shared mockAuthEvents helper into the blob data source test, its only user. Mirrors the celo-kona removal (drop CeloCalldataSource, use upstream CalldataSource). * feat(rollup): reject espresso_time scheduled before ecotone_time Dropping the Espresso-aware calldata source made "espresso_time >= ecotone_time" a silent correctness invariant: Espresso event-based authentication now lives only on the post-ecotone blob path, so a block in the [espresso_time, ecotone_time) window would route to the pre-ecotone calldata source and silently fall back to sender-based authorization. Guard the invariant in Config.Check(): error with ErrEspressoBeforeEcotone when espresso_time is set but ecotone_time is unset or scheduled later than espresso_time. Every real Celo chain sets ecotone_time = 0, so this only fires on a misconfiguration -- but now it fails fast instead of corrupting derivation. Mirrors the celo-kona validate_espresso guard (EspressoBeforeEcotone). * test(derive): restore multi-tx event-auth coverage; review cleanups - add mixed-block and multi-commitment subtests to TestDataAndHashesFromTxsEventAuth, restoring per-tx commitment matching coverage lost with espresso_calldata_source_test.go - drop stale comment reference to the deleted TestDataFromEVMTransactionsForkBoundary - reuse u64ptr instead of a local ptr closure in TestConfig_Check_EspressoBeforeEcotone --------- Co-authored-by: Paul Lange <[email protected]>
Makes the fallback (non-TEE) batcher authenticate each batch through the BatchAuthenticator contract before posting it to the batch inbox, so the post-Espresso derivation pipeline (event-based authorization) accepts fallback batches. Builds on #445; re-hosted from #448. op-batcher (fallback auth): - Gate authentication behind EspressoTime and a configured BatchAuthenticatorAddress (espresso_fallback_gate.go); pre-fork behaviour is unchanged. - Compute the batch commitment reusing the verifier's derive.Compute*BatchHash helpers, submit authenticateBatchInfo(commitment, "") ahead of the batch tx, watch both receipts, verify the auth landed within BatchAuthLookbackWindow, and emit one synthetic receipt so any failure re-queues the frames (fallback_auth.go). Calldata pairs pipeline; blob pairs serialise (blob vs calldata mempool exclusivity). - Wire dispatch into sendTx, drain in-flight watchers at shutdown, and add fallback_auth_window_exceeded_total / fallback_auth_reverted_total metrics. op-service/txmgr (ordered tx-pair primitive): - Add TxManager.SendPairAsync / Queue.SendPair to submit two dependent txs with adjacent nonces (auth first), cancel the second leg if the first fails, and fill both nonces with no-ops on failure to avoid wedging the account (pair.go, leg.go, queue.go, txmgr.go). One queue slot per pair. op-node (derivation enforcement): - Add BatchAuthEnforcementDelaySecs: a grace window (~one lookback window) after EspressoTime during which sender-based auth is still accepted, after which the batch commitment must appear in a BatchInfoAuthenticated event within BatchAuthLookbackWindow and the batch sender must equal the event caller (data_source.go, blob_data_source.go, batch_authenticator.go, params.go). Replaces the earlier batcher-side lead-time flag. Other: - Include espresso/ in the op-stack-go Docker build context. - Tests: fallback-auth ordering/revert/window/boundary/commitment-parity, the fork-boundary gate, txmgr pair (success, first-leg failure, revert, parent cancel, pipelining), and the derivation enforcement boundary.
* Espresso: enforce calldata-only DA post-fork (Least Authority Suggestion 4) The Celo fault-proof host (celo-kona) does not implement the L1Blob preimage hint, so an authenticated blob batch — while accepted by full nodes — would stall fault-proof execution at its L1 block. The spec declares blob DA unsupported (DEC-op-026/n-026), but until now that was an operational restriction only. Enforce it in code, at two layers: - Derivation pipeline (consensus): from Espresso activation onward (including the auth-enforcement grace window), dataAndHashesFromTxs drops blob-carrying inbox transactions before any authorization check, so post-Espresso derivation never requires blob preimages. This covers op-node and the Go op-program alike, since they share the derive package. Pre-fork semantics are unchanged (upstream behavior). - Batcher startup (operational): refuse to start with a blob or auto data-availability type when EspressoTime is scheduled, instead of letting verifiers silently drop every blob batch after activation and stalling the safe head. This makes the existing blob-pair headroom check in checkFallbackAuthConfirmations unreachable in practice; it is kept as defense in depth. Co-Authored-By: Claude Fable 5 <[email protected]> * op-node: hoist the Espresso activation check out of the tx loop Espresso activation is a property of the scanned L1 block's origin time, so evaluate it once alongside the enforcement check rather than per transaction. * op-node: correct the dataAndHashesFromTxs doc comment The pre-enforcement paragraph claimed upstream Optimism semantics for the whole function, including the grace window, which the calldata-only rule below it contradicts. Scope it to authorization, state the inbox filter once, and order the rules as the code applies them. * op-node: note that the blob batch-hash arm is dead post-Espresso Blob txs only get past the calldata-only drop pre-Espresso, where authorization is sender-based and never reads the batch hash. Record why the arm stays rather than folding into the calldata one. * op-batcher: record that the fallback-auth blob path is unreachable checkEspressoDataAvailability runs first and rejects the only configuration checkFallbackAuthConfirmations bounds, so the check cannot fire and the serialized blob send path cannot run. Keep both, and say so in the code. * espresso: scope the blob-preimage guarantee to post-fork L1 blocks Derivation's drop only covers blocks at or after espresso_time; the pre-fork blocks a proof walks back through are covered by the batcher gate, which keys on espresso_time being set rather than active. Say why that asymmetry stays. * op-batcher: state what a dropped blob batch actually costs Not an indefinite safe-head stall: derivation forces empty batches once the sequence window expires, and the verifier reorgs the unsafe chain away. * op-node: correct what the batch hash helpers claim about the contract authenticateBatchInfo takes an opaque bytes32 and has no calldata or blob validation path; the encoding is agreed off-chain. Note that the blob helper has no live caller while calldata-only DA is enforced. * op-batcher: note sendFallbackAuthSerialized has no reachable caller * op-batcher: mark the tests that pin configurations the batcher won't start Three TestCheckFallbackAuthConfirmations cases, the five tests built on testBlobCandidate and the blob parity subtest all describe blob DA, which checkEspressoDataAvailability rejects. Keep them, but say so. * espresso: cover the factory blob path and a scheduled-but-inactive batcher TestOpenDataDropsBlobsPostEspresso drives NewDataSourceFactory through OpenData and Next with Espresso enforced, asserting a blob inbox tx triggers no blob fetch; the bare MockBlobsFetcher fails the test if one is issued. TestCheckEspressoDataAvailability gains a future espresso_time, the input that distinguishes the batcher's scheduled-or-active gate from an activation check. * op-node: put the blob tx first in the mixed-block sub-test With the calldata batch first, the sub-test passes whether the gate uses continue or break: the blob tx is last, so a whole-block short-circuit costs nothing observable. Putting the blob tx first makes break swallow the calldata batch behind it and fail. Matches the ordering celo-kona's mirror of this test uses. --------- Co-authored-by: Claude Fable 5 <[email protected]> Co-authored-by: Paul Lange <[email protected]> Co-authored-by: Paul Lange <[email protected]>
Upstream switched op-e2e's default L2 EL to op-reth (3a7401b), but Celo's execution rules live in celo op-geth; this repo's op-reth is upstream's. Under op-reth, TestFees fails because base fees go to the BaseFeeVault instead of the FeeHandler. OP_E2E_L2_EL_KIND=op-reth still selects op-reth explicitly.
SP1, cannon, interop and the ZK dispute game have no Celo deployment, and the rust e2e release build and sysgo binaries only fed acceptance tests already disabled.
Upstream moved to shell-less chainguard/static, but Celo's charts and the node docker-compose start op-node, op-batcher and op-conductor through /bin/sh scripts.
Since v1.19.x the op-stack-go Dockerfile regenerates superchain-configs.zip from the submodule, which a plain checkout leaves empty.
The sequencer goroutine writes unsafeHead under e.mu while the driver event loop reads it unlocked. Same fix as #554 on celo-rebase-16.
Upstream moved the proof action tests under rust/, which go-tests excludes, so Celo's FeeHandler/L1Block and the derivation assertions stopped running.
Images reported v0.0.0 in metrics, logs and healthz because no workflow set GIT_VERSION. Release builds now use the tag, branch and PR builds v0.0.0-<sha8>, and both add OCI version and revision labels. Manual release runs fail unless started from a tag.
No acceptance job ran on this branch. op-geth is the only L2 EL here with Celo's changes; the devstack skips Karst chains on it, so only tests pinned up to Jovian run. The kona-sp1-proposer tests are skipped: no Celo support.
* circleci: compare PRs against celo-rebase-19 Change detection diffed against a stale origin/develop, semgrep against celo-rebase-18 and the compact-codec check against a temporary branch. PRs now target celo-rebase-19, so all three use it. * circleci: detect changes from the pushed commit on the base branch A push to celo-rebase-19 has nothing to diff against itself, so rust-ci and the contracts tests never ran there. Use the commit's own diff. * circleci: run rust-ci when the superchain-registry pin moves The kona and op-reth snapshot checks regenerate from the submodule, so a pin-only PR has to run them now that change detection diffs a real base. Co-Authored-By: Claude Opus 5.5 <[email protected]> * circleci: full semgrep scan on pushes to celo-rebase-XX The baseline is the pushed branch itself there, so the incremental scan checked nothing. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
* op-stack-go: refresh the CA bundle in alpine target images The digest-pinned alpine base freezes ca-certificates-bundle at 20260909, which still trusts emSign ECC Root CA - G3. Its intermediates were compromised (eMudhra, Oct 2026) and Mozilla removed the root from NSS on 2026-10-20. Go does not check revocation, so op-node, op-batcher and the other alpine-based images keep accepting certificates forged under it until their trust store changes. Upgrade the bundle at build time in a shared target-base stage, so a rebuild picks up root removals without waiting for a new base digest. Co-Authored-By: Claude Opus 5.5 <[email protected]> * op-stack-go: build with Go 1.26.10 Go 1.26.10 adds a crypto/x509 denylist of the eight compromised eMudhra intermediates (GO-2026-6809), so Verify rejects chains through them even when the system trust store still holds their root. Neither 1.25.14 nor 1.24.13 has it. The golang builder image sets GOTOOLCHAIN=local, so the go.mod toolchain line alone does not change the compiler used for the images; bump the builder images too, and mise so local and CI tests use the same version. Co-Authored-By: Claude Opus 5.5 <[email protected]> * op-stack-go: require ca-certificates-bundle >= 20261020 apk upgrade does not guarantee a minimum version, and a cached build layer would keep whatever bundle it first installed. A version floor fails the build instead of shipping a bundle that still trusts the compromised emSign root, and changes the layer's cache key. Co-Authored-By: Claude Opus 5.5 <[email protected]> * op-stack-go: upgrade the CA bundle on BUILDPLATFORM The release workflow cross-builds linux/arm64 without QEMU, so running apk in the target-platform target-base stage would fail with "exec format error" on the arm64 leg. PR CI builds amd64 only and would not catch it. Run the upgrade in a BUILDPLATFORM stage and copy only /etc/ssl/certs/ca-certificates.crt into target-base. The bundle is arch-independent and it is the only regular file the package ships; /etc/ssl/cert.pem is a symlink to it. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
* op-node: define CGTv2 upgrade and funding deposits Select fixed network profiles and reviewed NUT bundles. Construct the 15 direct upgrade deposits plus reserve funding from fixed total supply minus the migrated amount, with checked one-time gas allowances. Keep production placeholders separate from the synthetic chain-1337 bundle. Freeze shared byte/hash vectors and include the embedded runtime fixture in Docker builds. * op-node: derive CGTv2 upgrades from escrow receipts Authenticate each new origin header and its receipt root, then read the configured bridge's EscrowSeeded event for the configured Portal. Rebuild deposit log metadata from canonical traversal rather than RPC metadata. Append upgrades after every Portal deposit in the origin. Wire raw header access through the driver and attributes builder, and restore the normal gas limit after activation. No storage-proof bootstrap or migration cache is needed. Cover header binding, malformed receipts, retries, reorgs and cross-client origin vectors. * op-node: enforce deposits-only CGTv2 activation Disable the transaction pool for the activation block and reject user transactions during safe batch derivation after span decomposition. Retain candidates across RPC retries and clear them on reset or flush. Wire the activation detector into the production pipeline and guard the attributes queue. Cover singular/span boundaries, sequencing and safe payload validation. * op-node: align CGTv2 fixtures with the canonical bridge * op-node: simplify CGTv2 derivation checks Reuse FetchReceipts authentication instead of requiring a second header source. Keep canonical receipt field checks. Reject activation batches with user transactions in AttributesQueue after attributes are built, preserving RPC retries and accepted span prefixes. Remove the BatchMux detector and extra driver/pipeline wiring.
* go: upgrade builders to 1.26.11 security release Use the patched toolchain for CI, release images, and auxiliary builds.\nThe release fixes HTTP/2 server crashes and build-time code execution\nfrom malicious packages; existing binaries require rebuilding. * op-deployer: pin Sepolia state in upgrade test Fork the block used by the passing base-branch CI job so later Sepolia upgrades cannot turn this test into a rejected OPCM downgrade. * go.mod: require go 1.26.5 Builder images run GOTOOLCHAIN=local, which ignores the toolchain line, so only the go line keeps a builder off Go releases without the GO-2026-4870/5037 fixes.
* op-node: derive CGTv2 retries from authorized bridge events Pass the full candidate through the standard payload build. Apply the deposits-only rule to both initial activation and accepted retry origins so batch validation is independent of the execution result. * op-node: unify CGTv2 activation and retry receipt scans Read EscrowSeeded and CgtV2RetryRequested through the same event scan. Keep the Portal and retry hash filters, and verify the static artifact against the protocol hash for retry requests. Cover retry funding, skipped requests, initial seeding and critical artifact mismatches through the shared path. * op-node: log unrecognized CGTv2 retry hashes as errors * op-node: keep the unsafe chain when a derived block is already canonical celo-reth can rebuild a CGTv2 activation block identically although the derived attributes do not match it. Rewinding the unsafe head to that block made the sequencer reorg out blocks it had already gossiped. (cherry picked from commit 5c7d544) * op-node: test CGTv2 activation block consolidation end to end Run the attributes handler, engine controller and sequencer against an EL with reth's forkchoice rules and celo-reth's fallback builder, covering the kept chain, the sequencer resuming on it and the reorg when the upgrade lands. (cherry picked from commit 31ec469) --------- Co-authored-by: Paul Lange <[email protected]>
The same vector file will run in celo-kona's derive crate, so both clients pick the same trigger event.
Devnet and e2e chains should match Celo Sepolia's genesis and Celo op-geth's registry loader, which both default to gingerbreadBlock 0. Unset, Celo op-geth's RPC treats every block as a Celo L1 block and reports gasPrice null for mined EIP-1559 transactions.
Rebase 20 moved the base-branch detection to run time, ported Celo's chain config into op-core and hit three silent failure modes worth writing down.
The setup job cannot ask GitHub for a PR's target branch: the API rejects the token CI has with 403. Revert once CI has a token that can read PRs.
f7a2867 to
d68f42d
Compare
Use the regenerated v6 contract fixture, its retry hash, the 47.1M gas allowance and the shared vectors. Keep the script-host guard for exits without opcode frames; the OPCM past-upgrade fixes are left out because upstream removed that path.
* docs: say what the Celo fork is and where celo-kona lives Bug reports keep comparing op-node with the in-tree rust/kona, which Celo does not run. Point readers at celo-kona and docs.celo.org. * docs: name Celo's proof system in the fork note Celo settles with op-succinct ZK proofs, so reports against the OP fault dispute games do not apply either.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 64ed0b118f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if txData, ok := channel.NextAltDACommitment(); ok { | ||
| return txData, true |
There was a problem hiding this comment.
Restore the channel lookup when resending cached commitments
When an AltDA commitment's L1 transaction fails, channelManager.TxFailed deletes its entry from s.txChannels and rewinds the commitment cursor. The retry returned here bypasses nextTxData, so that lookup is never restored. Consequently, both TxConfirmed and TxFailed treat the retry's receipt as belonging to an unknown channel: a successful retry never clears its pending entry or updates timeout accounting, and a failed retry is never requeued, potentially leaving the channel incomplete until the sequencing window expires. Register the transaction-to-channel mapping whenever a cached commitment is dequeued, including retries.
Useful? React with 👍 / 👎.
| if len(txData.frames) == 0 { | ||
| panic("expected txData to have frames") | ||
| } | ||
| c.altDAFrameCursor = txData.frames[0].id.frameNumber |
There was a problem hiding this comment.
Keep the earliest failed AltDA frame when rewinding
With multiple AltDA commitment transactions in flight, several failure receipts can arrive before the publishing loop retries them, particularly when one send failure cancels the queue's shared context. If frame 0 fails and then frame 1 fails, this unconditional assignment first rewinds the cursor to 0 and then advances it to 1. Subsequent commitment dequeues therefore skip the failed frame 0 entirely, leaving an incomplete channel on L1. Like ChannelBuilder.RewindFrameCursor, this operation must only move the cursor backward so later failure receipts cannot overwrite an earlier pending rewind.
Useful? React with 👍 / 👎.
This moves Celo's optimism fork from
op-node/v1.19.9(celo-rebase-19) toop-node/v1.20.2, and Celo op-geth tov1.101702.4-rc.2. v1.20.2 is the last stable release before upstream drops its op-geth fork, so this is the last rebase that keeps the celo-org/op-geth replace. Upstream already moved the L2 chain config and genesis out of op-geth intoop-corein this range, so Celo's chain config is ported intoop-corehere. Otherwise it is the rebase-19 patch set, minus what upstream absorbed. Fixes are folded into the commits they belong to, so review per commit. Every commit that touches Go passesjust lint-goon its own.This PR targets
palango/celo-rebase-20-base(the bare upstream tag) so CircleCI runs and the diff shows only Celo's 65 commits. It will not be merged; the branch gets published ascelo-rebase-20.op-geth (
palango/celo-rebase-20@d64f7cfe8)v1.101702.4-rc.2. The full test suite passes.optimism
op-corecarries Celo's chain config.Cel2Time,GingerbreadBlockand the base fee floor go throughop-core/params(struct, JSON codec, go-ethereum conversion). Chain ID 42220 gets Celo Mainnet's migration-block fork schedule, next to upstream's OP Mainnet case. The registry mapping inop-core/superchain/params.gocarriescel2_timeand the[celo]table.TestCeloChainConfigsMatchOpGethcompares the result with Celo op-geth's own loader for both Celo chains.NewL2Genesisrefuses L2 chain ID 42220, as upstream does for chain 10, and activates Gingerbread at genesis for devnets and e2e chains (eaa9d6b3e0). With Gingerbread unset, op-geth returnsgasPrice: nullfor mined EIP-1559 transactions.8944704b(upstream88ee79a3merged in). Celo Mainnet is no longer skipped bysync-superchain.sh.op-reth-test-engine.celo-rebase-19after the replay started and are picked on top. From op-node: include L2 messenger in the CGTv2 bundle #586 the OPCM past-upgrade fixes are left out, because upstream removed the script-driven upgrade path they patch; the CGTv2 bundle change, its vectors and the script-host guard are kept.GetInputsignature (GoldToken & CeloRegistry to L2 #45).celo-org/[email protected]. Upstream now asks the GitHub API for a PR's target branch, which fails on the fork: celo-org forbids classic tokens and fine-grained tokens that live longer than 30 days, so the call gets a 403. The last commit makespackages/contracts-bedrock/scripts/ops/get-target-branch.shreturn a fixed branch for PR jobs instead, and the semgrepdiff_branchnames the same branch. It ispalango/celo-rebase-20-basewhile this PR is open and becomescelo-rebase-20at publish. The test jobs that run op-deployer from the checkout also check out the submodule nested inespresso-tee-contractsand install the solc versions the artifacts were built with; without them forge recompiles the Espresso contracts and op-deployer refuses the stale cache. The new contract test variantsBRIDGE_HOOKandOP_PRIVATEare disabled along withINTEROP.packages/contracts-bedrock/foundry.tomlignores warnings fromlib/openzeppelin-contracts-v5, which only the Espresso contracts pull in. forge 1.8.3 fails the build on a "future keyword" warning there.f7a2867b37).Verified locally
just lint-goon every Go-touching commit and at the tip.op-reth-test-engine;op-e2e/system/feeson Celo op-geth.forge build, with no diff in snapshots, semver lock or the upgrade bundle.just build,just lint, and the kona-genesis, kona-registry and reth-optimism-chainspec tests.CircleCI is green on this tree (all 50 checks, first on #590, which is folded in here), including the acceptance tests, forge tests,
cargo denyand the op-e2e system suite, none of which ran locally.Known gaps
op-node/superchainTestApplyHardforks_NoForksfails at the registry sync commit alone and passes at the tip:HardforkConfig.EspressoTimehas to exist there because the registry data already hasespresso_timeand the decoder is strict.Before rollout
--sequencer.max-safe-lagno longer exists.