Skip to content

Conversation

@fmoletta
Copy link
Contributor

Motivation
When encoding non-legacy transactions we need to encode the payload (txType || rlp(Transaction) as a bytes object. In order to do so we copy the payload to a Bytes object and then encode it in rlp, this is not needed as we can just encode the payload as bytes by invoking the implementation for [u8] directly

Description

  • Avoid using Bytes::copy_from_slice when encoding transactions

@github-actions github-actions bot added the L1 Ethereum client label Oct 31, 2025
@fmoletta fmoletta marked this pull request as ready for review October 31, 2025 13:35
@fmoletta fmoletta requested a review from a team as a code owner October 31, 2025 13:35
@ethrex-project-sync ethrex-project-sync bot moved this to In Review in ethrex_l1 Oct 31, 2025
@fmoletta fmoletta enabled auto-merge November 3, 2025 14:36
@fmoletta fmoletta added this pull request to the merge queue Nov 3, 2025
@ilitteri ilitteri removed this pull request from the merge queue due to a manual request Nov 3, 2025
@fmoletta fmoletta added this pull request to the merge queue Nov 4, 2025
Merged via the queue into main with commit 6e40a72 Nov 4, 2025
38 checks passed
@fmoletta fmoletta deleted the omit-copying-bytes-for-encoding branch November 4, 2025 17:54
@github-project-automation github-project-automation bot moved this from In Review to Done in ethrex_l1 Nov 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

L1 Ethereum client

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants