Skip to content

espresso: delete dead supporting code - #512

Merged
palango merged 3 commits into
espresso/batcherfrom
palango/espresso-dead-code-cleanup
Aug 19, 2026
Merged

espresso: delete dead supporting code#512
palango merged 3 commits into
espresso/batcherfrom
palango/espresso-dead-code-cleanup

Conversation

@palango

@palango palango commented Aug 19, 2026

Copy link
Copy Markdown

Stacked on #459. Removes supporting code added there that has no callers.

  • espresso/ethclient.go: AdaptL1BlockRefClient duplicates batcherL1Adapter in op-batcher/batcher/espresso_driver.go, and FetchEspressoBatcherAddress is for the caff node, which lives in another repo.
  • opcrypto.Verify and its test: called only by the test. Its doc comment also described message-based verification while the implementation requires a 32-byte digest, so leaving it invites misuse.
  • AllowEmptyAttestationService: nothing calls the setter, so the private field was always false. Check() now requires the attestation service URL unconditionally, which is what already happened in practice.
  • A doc comment in op-service/log/repeat_state.go contrasted RepeatStateLogger with a DebouncingHandler that does not exist in this repo. Reworded to state the actual distinction.

Verified with go build and go vet on the touched packages, plus go test on op-service/crypto, op-service/log and op-batcher/batcher.

Remove code with no callers: espresso/ethclient.go (duplicates
batcherL1Adapter; FetchEspressoBatcherAddress belongs to the caff node in
another repo), opcrypto.Verify and its test, and the
AllowEmptyAttestationService escape hatch, which nothing sets, so Check()
now requires the attestation service URL unconditionally. Also drop a doc
reference to DebouncingHandler, which does not exist.
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.

@philippecamacho philippecamacho left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@palango
palango merged commit af22822 into espresso/batcher Aug 19, 2026
36 of 38 checks passed
@palango
palango deleted the palango/espresso-dead-code-cleanup branch August 19, 2026 14:39
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.

2 participants