Skip to content

refactor(engine-api): remove engine_appendBatchSignature and BatchSignature#105

Open
panos-xyz wants to merge 2 commits intomainfrom
refactor/remove-batch-signature
Open

refactor(engine-api): remove engine_appendBatchSignature and BatchSignature#105
panos-xyz wants to merge 2 commits intomainfrom
refactor/remove-batch-signature

Conversation

@panos-xyz
Copy link
Copy Markdown
Contributor

@panos-xyz panos-xyz commented Apr 29, 2026

Summary

Remove the engine_appendBatchSignature RPC stub and the BatchSignature type. The consensus layer (tendermint / morphnode) no longer calls this method after batch generation is moved out of the consensus path to the tx-submitter.

Cross-repo coordination

This PR is the morph-reth counterpart of:

Scope

morph-reth only ever carried a no-op stub for engine_appendBatchSignature (added in #93 to prevent morphnode's retry loop from hanging the tendermint goroutine). morph-reth never implemented the geth-side batch write paths (CommitBatch, RollupBatch DB accessors, batch.Handler lifecycle), so there is no equivalent cleanup needed here — only the stub goes away.

batch_hash was already removed from MorphHeader in #31, and newL2Block already has no batchHash parameter in reth.

Changes

  • Delete append_batch_signature default method from MorphL2EngineApi trait (crates/engine-api/src/api.rs)
  • Delete append_batch_signature method from MorphL2EngineRpc trait + MorphL2EngineRpcHandler impl (crates/engine-api/src/rpc.rs)
  • Delete BatchSignature struct (crates/payload/types/src/params.rs)
  • Drop BatchSignature re-export (crates/payload/types/src/lib.rs)
  • Drop engine_appendBatchSignature row from README Engine API table

Net diff: 5 files, +4 / -68.

Deployment ordering

This PR should land together with (or after) the coordinated PRs in go-ethereum / tendermint / morph. Running a newer morph-reth without the engine_appendBatchSignature endpoint against an older morphnode that still calls it would trigger the same "Method not found" retry storm that #93 originally fixed.

Test plan

Summary by CodeRabbit

  • Chores
    • Removed the appendBatchSignature API method from the Engine API along with its type definitions and JSON-RPC endpoint.

…nature

The consensus layer (tendermint/morphnode) no longer calls
engine_appendBatchSignature after the batch generation is moved out
of the consensus path to the tx-submitter. Remove the no-op stub
and its associated BatchSignature type.

Corresponds to morph-l2/go-ethereum#319, morph-l2/tendermint#35,
and morph-l2/morph#939.
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 29, 2026

Warning

Rate limit exceeded

@panos-xyz has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 56 minutes and 57 seconds before requesting another review.

To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 61926973-d2bd-4af6-a70d-8d3c0b5a84c5

📥 Commits

Reviewing files that changed from the base of the PR and between cc7372a and ec7c735.

📒 Files selected for processing (2)
  • crates/engine-api/src/api.rs
  • crates/engine-api/src/rpc.rs
📝 Walkthrough

Walkthrough

This PR removes the batch signature feature from the Engine API, eliminating the append_batch_signature method from the core trait and RPC layer, the corresponding BatchSignature type definition, and all related documentation.

Changes

Cohort / File(s) Summary
Documentation
README.md
Removes the documented engine_appendBatchSignature API endpoint description.
API Trait and RPC Layer
crates/engine-api/src/api.rs, crates/engine-api/src/rpc.rs
Removes the append_batch_signature async method from MorphL2EngineApi trait and the corresponding appendBatchSignature JSON-RPC method from MorphL2EngineRpc trait and its handler implementation.
Type Definitions
crates/payload/types/src/lib.rs, crates/payload/types/src/params.rs
Removes BatchSignature re-export from public API and deletes the complete BatchSignature struct definition with all its fields (signer, signer_pub_key, signature).

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • chengwenxi
  • anylots

Poem

🐰 A signature once passed through the chain,
But batch by batch, it caused us pain,
Now cleanly swept, the API shines bright,
No more appendBatchSignature in sight! ✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and specifically describes the main change: removing the engine_appendBatchSignature RPC method and BatchSignature type from the codebase, which aligns with all the modifications across multiple files.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch refactor/remove-batch-signature

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
Review rate limit: 0/1 reviews remaining, refill in 56 minutes and 57 seconds.

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

1 participant