Skip to content

chore(consensus): Remove associated type Consensus::Error#20843

Merged
emhane merged 1 commit intomainfrom
emhane/upstream-rm-consensus-err-at
Jan 8, 2026
Merged

chore(consensus): Remove associated type Consensus::Error#20843
emhane merged 1 commit intomainfrom
emhane/upstream-rm-consensus-err-at

Conversation

@emhane
Copy link
Collaborator

@emhane emhane commented Jan 8, 2026

Upstreams op-rs#543

Removes redundant Error associated type on Consensus trait

Closes #519

---------

Co-authored-by: Emilia Hane <elsaemiliaevahane@gmail.com>
Co-authored-by: Emilia Hane <emiliaha95@gmail.com>
@emhane emhane added the C-debt A clean up/refactor of existing code label Jan 8, 2026
@emhane emhane requested a review from shekhirin as a code owner January 8, 2026 15:42
@emhane emhane added the A-consensus Related to the consensus engine label Jan 8, 2026
@emhane emhane added the A-sdk Related to reth's use as a library label Jan 8, 2026
@github-project-automation github-project-automation bot moved this to Backlog in Reth Tracker Jan 8, 2026
@emhane emhane enabled auto-merge January 8, 2026 15:43
@mattsse mattsse added the M-changelog This change should be included in the changelog label Jan 8, 2026
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

imo this makes sense

consensus error has

/// Other, likely an injected L2 error.
#[error("{0}")]
Other(String),

which should be sufficient but perhaps we also add a dyn error variant here

wdyt @klkvr

@emhane emhane added this pull request to the merge queue Jan 8, 2026
@github-project-automation github-project-automation bot moved this from Backlog to In Progress in Reth Tracker Jan 8, 2026
Merged via the queue into main with commit 412f39e Jan 8, 2026
46 checks passed
@emhane emhane deleted the emhane/upstream-rm-consensus-err-at branch January 8, 2026 16:03
@github-project-automation github-project-automation bot moved this from In Progress to Done in Reth Tracker Jan 8, 2026
theochap pushed a commit to ethereum-optimism/optimism that referenced this pull request Jan 22, 2026
…xyz/reth#20843)

Co-authored-by: Josh_dfG <126518346+JoshdfG@users.noreply.github.com>
theochap pushed a commit to ethereum-optimism/optimism that referenced this pull request Feb 11, 2026
…xyz/reth#20843)

Co-authored-by: Josh_dfG <126518346+JoshdfG@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-consensus Related to the consensus engine A-sdk Related to reth's use as a library C-debt A clean up/refactor of existing code M-changelog This change should be included in the changelog

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants