Skip to content

refactor: provide default implementation for send_raw_transaction#19564

Merged
klkvr merged 2 commits intomainfrom
klkvr/send-pool-tx
Nov 6, 2025
Merged

refactor: provide default implementation for send_raw_transaction#19564
klkvr merged 2 commits intomainfrom
klkvr/send-pool-tx

Conversation

@klkvr
Copy link
Copy Markdown
Member

@klkvr klkvr commented Nov 6, 2025

Changes EthTransactions trait:

  • send_transaction is renamed to send_transaction_request
  • new send_transaction is introduced which accepts WithEncoded<Recovered<PooledTx>> and is expected to have the same behavior as send_raw_transaction currently
  • default implementation for send_raw_transaction is provided

the idea is to allow conditionally routing transactions without requiring to do decoding twice

Copy link
Copy Markdown
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.

lgtm!

Comment on lines 40 to 41
///
/// Returns the hash of the transaction.
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.

I think we can remove all the docs here because trait fn

@github-project-automation github-project-automation bot moved this from Backlog to In Progress in Reth Tracker Nov 6, 2025
@mattsse mattsse added C-enhancement New feature or request M-changelog This change should be included in the changelog A-rpc Related to the RPC implementation labels Nov 6, 2025
@klkvr klkvr enabled auto-merge November 6, 2025 21:19
@klkvr klkvr added this pull request to the merge queue Nov 6, 2025
Merged via the queue into main with commit 4d9d712 Nov 6, 2025
42 checks passed
@klkvr klkvr deleted the klkvr/send-pool-tx branch November 6, 2025 21:49
@github-project-automation github-project-automation bot moved this from In Progress to Done in Reth Tracker Nov 6, 2025
theochap pushed a commit to ethereum-optimism/optimism that referenced this pull request Jan 22, 2026
theochap pushed a commit to ethereum-optimism/optimism that referenced this pull request Feb 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-rpc Related to the RPC implementation C-enhancement New feature or request M-changelog This change should be included in the changelog

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants