Skip to content

Avoid cloning tx during payload execution#29

Merged
louisliu2048 merged 2 commits intodevfrom
vui-chee/no-clone-payload-build
Nov 10, 2025
Merged

Avoid cloning tx during payload execution#29
louisliu2048 merged 2 commits intodevfrom
vui-chee/no-clone-payload-build

Conversation

@Vui-Chee
Copy link
Copy Markdown

@Vui-Chee Vui-Chee commented Nov 10, 2025

I realized we clone the entire tx before execution, what we can do is pull out some fields before moving the tx into function for execution.

// This ensures that intercepted transactions are not committed to the block state,
// preventing tx number inconsistencies in static files.
let gas_used = match builder.execute_transaction_with_commit_condition(
tx.clone(),
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

This is removed.

@louisliu2048 louisliu2048 merged commit 9006558 into dev Nov 10, 2025
@Vui-Chee Vui-Chee deleted the vui-chee/no-clone-payload-build branch November 10, 2025 12:01
Vui-Chee added a commit that referenced this pull request Nov 11, 2025
* dev: (458 commits)
  Ignore xlayer-e2e-test during integration testing (#32)
  feat(genesis): optimize genesis loading with built-in xlayer specs (#23)
  Mirror default timeout in `clap` args struct (#31)
  fix constraint (#30)
  support trace tx log (#16)
  Avoid cloning tx during payload execution (#29)
  Feature: import blockchain data into op-reth (#20)
  perf(cargo): Use alloy 1.1.0 and fix some warning issue (#26)
  feat: Add E2E Test Suite (#19)
  fix tx number inconsistencies issue cause by intercept bridge function (#25)
  fix build error
  feat: integrate Apollo dynamic configuration (#8)
  feat: support `eth_transactionPreExec` api (#10)
  chore: bump version
  chore: bump revm v31.0.1 (paradigmxyz#19567)
  Xiong/block bridge okb (#21)
  feat: Add legacy RPC routing support for historical block data migration (#6)
  feat(genesis): Support legacyXLayerBlock in genesis.json (#11)
  chore: Update cursor rules, add rust comprehensive cursor rules (#17)
  chore: bump v1.9.0 (paradigmxyz#19507)
  ...
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.

3 participants