Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
eb0faac
initial types
yongkangc Oct 22, 2025
a631275
perf(trie): box large AccountMultiproofInput in worker enum
yongkangc Oct 22, 2025
351b848
fmt
yongkangc Oct 22, 2025
2a53ab8
rm proof result state
yongkangc Oct 22, 2025
70b939a
rm proof calculated
yongkangc Oct 22, 2025
4ce1f28
wiring for crossbeam sender
yongkangc Oct 22, 2025
f8f6ca4
refactor(trie): desstructure due to box
yongkangc Oct 22, 2025
77a70a6
refactor(engine): dispatch_account_multiproof with direct sending
yongkangc Oct 22, 2025
306b339
refactor(trie): integrate crossbeam channel for proof result handling
yongkangc Oct 22, 2025
ad3131c
refactor(engine): enhance multiproof result handling with crossbeam c…
yongkangc Oct 22, 2025
275eea9
refactor(trie): improve account multiproof handling with crossbeam ch…
yongkangc Oct 22, 2025
274b0de
refactor(engine): streamline multiproof processing with enhanced cros…
yongkangc Oct 22, 2025
193fd79
added back span
yongkangc Oct 22, 2025
fec8474
added back timing
yongkangc Oct 22, 2025
a697c2c
fix
yongkangc Oct 22, 2025
7ba40ea
move up
yongkangc Oct 22, 2025
8952dff
reorder
yongkangc Oct 22, 2025
2cdc894
improve comment
yongkangc Oct 22, 2025
21b2d3e
refactor(engine): update MultiProofTask to use named channel for impr…
yongkangc Oct 22, 2025
321df68
refactor(engine): storage proof dispatching with crossbeam channel
yongkangc Oct 23, 2025
ff377af
inline
yongkangc Oct 23, 2025
8fecfd0
refactor(engine): remove unused executor from MultiProofTask and Mult…
yongkangc Oct 23, 2025
c9faf29
comment
yongkangc Oct 23, 2025
21fd4a2
comment
yongkangc Oct 23, 2025
e52335c
comment fix
yongkangc Oct 23, 2025
029c602
fmt
yongkangc Oct 23, 2025
0156893
merge
yongkangc Oct 23, 2025
d1074bf
fix merge conflict
yongkangc Oct 23, 2025
581c7d8
fix imports
yongkangc Oct 23, 2025
0d0b5c1
remove workload executor
yongkangc Oct 23, 2025
303edfc
update targets
yongkangc Oct 23, 2025
e312ad2
rm source var
yongkangc Oct 23, 2025
368547f
docs
yongkangc Oct 23, 2025
8278f42
fmt
yongkangc Oct 23, 2025
7922b1e
fix comment
yongkangc Oct 23, 2025
fc27841
chnage comment
yongkangc Oct 23, 2025
9c98edf
update targets
yongkangc Oct 23, 2025
8106583
fix: rename spawn_* methods to dispatch_* and fix
yongkangc Oct 24, 2025
895179c
refactor: replace tuple with ProofResultContext struct for proof resu…
yongkangc Oct 24, 2025
c0a2495
reorder
yongkangc Oct 24, 2025
43e5148
rename
yongkangc Oct 24, 2025
98f90c8
changed
yongkangc Oct 24, 2025
8d94683
fix: update error handling in MultiProofTask to use unreachable!() fo…
yongkangc Oct 24, 2025
ffec87e
fix docs
yongkangc Oct 24, 2025
1e5f4fe
fix: improve documentation for MultiProofTask message flow
yongkangc Oct 24, 2025
4b86b2c
metrics: Record total proof latency
yongkangc Oct 24, 2025
105008f
fmt
yongkangc Oct 24, 2025
aeff510
fix fmt
yongkangc Oct 24, 2025
5157392
removed comment
yongkangc Oct 24, 2025
c395873
added error
yongkangc Oct 24, 2025
6550884
Improve logging in MultiProofTask message processing
yongkangc Oct 24, 2025
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
1 change: 1 addition & 0 deletions crates/engine/tree/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ rayon.workspace = true
tracing.workspace = true
derive_more.workspace = true
parking_lot.workspace = true
crossbeam-channel.workspace = true

# optional deps for test-utils
reth-prune-types = { workspace = true, optional = true }
Expand Down
10 changes: 5 additions & 5 deletions crates/engine/tree/src/tree/payload_processor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ use crate::tree::{
};
use alloy_evm::{block::StateChangeSource, ToTxEnv};
use alloy_primitives::B256;
use crossbeam_channel::Sender as CrossbeamSender;
use executor::WorkloadExecutor;
use multiproof::{SparseTrieUpdate, *};
use parking_lot::RwLock;
Expand Down Expand Up @@ -43,7 +44,7 @@ use reth_trie_sparse_parallel::{ParallelSparseTrie, ParallelismThresholds};
use std::{
sync::{
atomic::AtomicBool,
mpsc::{self, channel, Sender},
mpsc::{self, channel},
Arc,
},
time::Instant,
Expand Down Expand Up @@ -243,7 +244,6 @@ where

let multi_proof_task = MultiProofTask::new(
state_root_config,
self.executor.clone(),
proof_handle.clone(),
to_sparse_trie,
config.multiproof_chunking_enabled().then_some(config.multiproof_chunk_size()),
Expand Down Expand Up @@ -345,7 +345,7 @@ where
mut transactions: mpsc::Receiver<impl ExecutableTxFor<Evm> + Clone + Send + 'static>,
transaction_count_hint: usize,
provider_builder: StateProviderBuilder<N, P>,
to_multi_proof: Option<Sender<MultiProofMessage>>,
to_multi_proof: Option<CrossbeamSender<MultiProofMessage>>,
) -> CacheTaskHandle
where
P: BlockReader + StateProviderFactory + StateReader + Clone + 'static,
Expand Down Expand Up @@ -483,7 +483,7 @@ where
#[derive(Debug)]
pub struct PayloadHandle<Tx, Err> {
/// Channel for evm state updates
to_multi_proof: Option<Sender<MultiProofMessage>>,
to_multi_proof: Option<CrossbeamSender<MultiProofMessage>>,
// must include the receiver of the state root wired to the sparse trie
prewarm_handle: CacheTaskHandle,
/// Receiver for the state root
Expand Down Expand Up @@ -561,7 +561,7 @@ pub(crate) struct CacheTaskHandle {
/// Metrics for the caches
cache_metrics: CachedStateMetrics,
/// Channel to the spawned prewarm task if any
to_prewarm_task: Option<Sender<PrewarmTaskEvent>>,
to_prewarm_task: Option<std::sync::mpsc::Sender<PrewarmTaskEvent>>,
}

impl CacheTaskHandle {
Expand Down
Loading
Loading