Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Add dummy system tx in op dev mode #14062

Merged
merged 3 commits into from
Jan 30, 2025

Conversation

Bisht13
Copy link
Contributor

@Bisht13 Bisht13 commented Jan 29, 2025

Description

Add dummy system transaction in op reth if it is run in dev mode.

closes #14005
closes #13991

@Bisht13
Copy link
Contributor Author

Bisht13 commented Jan 29, 2025

@mattsse let me know if you want me to add tests for the same as well!

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.

ty,

smol nit

/// OP Mainnet transaction at index 0 in block 124665056.
///
/// <https://optimistic.etherscan.io/tx/0x312e290cf36df704a2217b015d6455396830b0ce678b860ebfcc30f41403d7b1>
pub const TX_SET_L1_BLOCK_OP_MAINNET_BLOCK_124665056: [u8; 251] = hex!("7ef8f8a0683079df94aa5b9cf86687d739a60a9b4f0835e520ec4d664e2e415dca17a6df94deaddeaddeaddeaddeaddeaddeaddeaddead00019442000000000000000000000000000000000000158080830f424080b8a4440a5e200000146b000f79c500000000000000040000000066d052e700000000013ad8a3000000000000000000000000000000000000000000000000000000003ef1278700000000000000000000000000000000000000000000000000000000000000012fdf87b89884a61e74b322bbcf60386f543bfae7827725efaaf0ab1de2294a590000000000000000000000006887246668a3b87f54deb3b94ba47a6f63f32985");
Copy link
Collaborator

Choose a reason for hiding this comment

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

this should probably solve the rpc issues that @Quertyy faced

I consider this a nice short term fix, we can make this a bit smarter in followups,
e.g. actually crafting a system tx.

but before we can do this we need to solve a few other things that I'll scope now

@Bisht13 Bisht13 force-pushed the fix/op-dev-chain-tx branch from ef5bd50 to ee1df52 Compare January 30, 2025 05:00
@mattsse
Copy link
Collaborator

mattsse commented Jan 30, 2025

@Quertyy confirmed that this fixes the issue, this (hacky) solution is only temporary, working on improvements separately

@mattsse mattsse added this pull request to the merge queue Jan 30, 2025
Merged via the queue into paradigmxyz:main with commit 89f8667 Jan 30, 2025
44 checks passed
@Bisht13 Bisht13 deleted the fix/op-dev-chain-tx branch January 30, 2025 13:17
@Quertyy
Copy link
Contributor

Quertyy commented Jan 30, 2025

@Quertyy confirmed that this fixes the issue, this (hacky) solution is only temporary, working on improvements separately

It works well, thank u for the quick fix @Bisht13

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.

Inject OP system tx during local payload building Can not use op-reth in dev mode
3 participants