Skip to content

feat(l2): prioritize privileged transactions #3784

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

iovoid
Copy link
Contributor

@iovoid iovoid commented Jul 22, 2025

Motivation

We want to prioritize privileged transactions, to prevent the sequencer from exceeding it's inclusion deadline.

Description

Also ensures privileged transactions are sorted by their nonce, to ensure (the other case that may cause out-of-order insertion is handled in #3776) they're inserted in-order.

Closes #3730

@iovoid iovoid requested a review from a team as a code owner July 22, 2025 20:15
@github-actions github-actions bot added the L2 Rollup client label Jul 22, 2025
Copy link

Lines of code report

Total lines added: 38
Total lines removed: 87
Total lines changed: 125

Detailed view
+---------------------------------------------------------------+-------+------+
| File                                                          | Lines | Diff |
+---------------------------------------------------------------+-------+------+
| ethrex/cmd/ef_tests/state/lib.rs                              | 6     | -1   |
+---------------------------------------------------------------+-------+------+
| ethrex/cmd/ef_tests/state/parser.rs                           | 223   | -31  |
+---------------------------------------------------------------+-------+------+
| ethrex/cmd/ef_tests/state/runner/levm_runner.rs               | 429   | -1   |
+---------------------------------------------------------------+-------+------+
| ethrex/crates/blockchain/payload.rs                           | 580   | +6   |
+---------------------------------------------------------------+-------+------+
| ethrex/crates/common/serde_utils.rs                           | 504   | -40  |
+---------------------------------------------------------------+-------+------+
| ethrex/crates/common/types/block.rs                           | 756   | +2   |
+---------------------------------------------------------------+-------+------+
| ethrex/crates/common/types/transaction.rs                     | 2636  | +8   |
+---------------------------------------------------------------+-------+------+
| ethrex/crates/l2/sequencer/l1_proof_sender.rs                 | 309   | -6   |
+---------------------------------------------------------------+-------+------+
| ethrex/crates/networking/rpc/clients/eth/mod.rs               | 1294  | +22  |
+---------------------------------------------------------------+-------+------+
| ethrex/crates/vm/backends/levm/mod.rs                         | 543   | -1   |
+---------------------------------------------------------------+-------+------+
| ethrex/crates/vm/levm/bench/revm_comparison/src/levm_bench.rs | 70    | -1   |
+---------------------------------------------------------------+-------+------+
| ethrex/crates/vm/levm/src/opcode_handlers/system.rs           | 824   | -4   |
+---------------------------------------------------------------+-------+------+
| ethrex/crates/vm/levm/src/opcodes.rs                          | 499   | -1   |
+---------------------------------------------------------------+-------+------+
| ethrex/crates/vm/levm/src/vm.rs                               | 218   | -1   |
+---------------------------------------------------------------+-------+------+

@iovoid iovoid moved this to In Review in ethrex_l2 Jul 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L2 Rollup client
Projects
Status: In Review
Development

Successfully merging this pull request may close these issues.

L2: Prioritize Privileged Transactions in Sequencer
2 participants