Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
6e55b7b
feat(l1): cache execution witnesses
avilagaston9 Dec 22, 2025
b855dd0
Fix linter
avilagaston9 Dec 22, 2025
994b485
Update cli docs
avilagaston9 Dec 23, 2025
613ea65
fix: return rpc witness
avilagaston9 Dec 23, 2025
3302c1b
Remove unneeded check
avilagaston9 Dec 23, 2025
0b0e77e
Address comments
avilagaston9 Dec 23, 2025
b17523a
don't return an error if witness generation fails
avilagaston9 Dec 23, 2025
0a3676f
Update table docs
avilagaston9 Dec 23, 2025
540c678
Avoid returning errors
avilagaston9 Dec 23, 2025
cd2d029
Address comments
avilagaston9 Jan 5, 2026
54dbcfc
refactor: avoid re-execution
avilagaston9 Jan 5, 2026
fa11849
Remove comments
avilagaston9 Jan 6, 2026
d207b46
Only generate witness when synced
avilagaston9 Jan 6, 2026
d1461e5
fix: keep initial state unchanged
avilagaston9 Jan 7, 2026
263e0e5
fix: use iterator properly
avilagaston9 Jan 8, 2026
73269b7
Add measurements doc
avilagaston9 Jan 8, 2026
2fde629
rename cached/non-cached to pre-generated/on-demand
avilagaston9 Jan 8, 2026
0343b46
Add observation about the rpc node
avilagaston9 Jan 8, 2026
187f934
Avoid storing the block in generate_witness_from_account_updates
avilagaston9 Jan 9, 2026
14173ad
Rename oldest_witness_block
avilagaston9 Jan 9, 2026
aa754b7
Clarify code with comments
avilagaston9 Jan 9, 2026
b6f7f9b
Refactor with let chain
avilagaston9 Jan 9, 2026
2ed6d66
Update comment
avilagaston9 Jan 9, 2026
6b62d25
Update CLI.md
avilagaston9 Jan 9, 2026
83e202a
Merge branch 'main' into feat/l1/cache_execution_witnesses
avilagaston9 Jan 12, 2026
b7d9862
Merge branch 'main' into feat/l1/cache_execution_witnesses
avilagaston9 Jan 12, 2026
bf07cb5
Improve doc comments
avilagaston9 Jan 13, 2026
2c668de
refactor: accumulate account updates during merkleization
avilagaston9 Jan 13, 2026
9dae85e
Merge branch 'main' into feat/l1/cache_execution_witnesses
avilagaston9 Jan 13, 2026
0577cc7
Fix typo
avilagaston9 Jan 13, 2026
2455d27
Fix clippy
avilagaston9 Jan 13, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions cmd/ethrex/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,14 @@ pub struct Options {
value_parser = clap::value_parser!(u32).range(1..)
)]
pub max_blobs_per_block: Option<u32>,
#[arg(
long = "generate-witness",
action = ArgAction::SetTrue,
default_value = "false",
help = "Once synced, generates execution witnesses upon receiving newPayload messages and stores them in local storage",
help_heading = "Node options"
)]
pub generate_witness: bool,
}

impl Options {
Expand Down Expand Up @@ -364,6 +372,7 @@ impl Default for Options {
extra_data: get_minimal_client_version(),
gas_limit: DEFAULT_BUILDER_GAS_CEIL,
max_blobs_per_block: None,
generate_witness: false,
}
}
}
Expand Down
1 change: 1 addition & 0 deletions cmd/ethrex/initializers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,7 @@ pub async fn init_l1(
perf_logs_enabled: true,
r#type: BlockchainType::L1,
max_blobs_per_block: opts.max_blobs_per_block,
generate_witness: opts.generate_witness,
},
);

Expand Down
1 change: 1 addition & 0 deletions cmd/ethrex/l2/initializers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ pub async fn init_l2(
r#type: BlockchainType::L2(l2_config),
perf_logs_enabled: true,
max_blobs_per_block: None, // L2 doesn't support blob transactions
generate_witness: opts.node_opts.generate_witness,
};

let blockchain = init_blockchain(store.clone(), blockchain_opts.clone());
Expand Down
Loading