mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-30 03:01:58 -04:00
feat(engine): enable prewarming & caching by default (#15630)
This commit is contained in:
@@ -53,8 +53,8 @@ pub struct PayloadProcessor<N, Evm> {
|
||||
trie_metrics: MultiProofTaskMetrics,
|
||||
/// Cross-block cache size in bytes.
|
||||
cross_block_cache_size: u64,
|
||||
/// Whether transactions should be executed on prewarming task.
|
||||
use_transaction_prewarming: bool,
|
||||
/// Whether transactions should not be executed on prewarming task.
|
||||
disable_transaction_prewarming: bool,
|
||||
/// Determines how to configure the evm for execution.
|
||||
evm_config: Evm,
|
||||
_marker: std::marker::PhantomData<N>,
|
||||
@@ -68,7 +68,7 @@ impl<N, Evm> PayloadProcessor<N, Evm> {
|
||||
execution_cache: Default::default(),
|
||||
trie_metrics: Default::default(),
|
||||
cross_block_cache_size: config.cross_block_cache_size(),
|
||||
use_transaction_prewarming: config.use_caching_and_prewarming(),
|
||||
disable_transaction_prewarming: config.disable_caching_and_prewarming(),
|
||||
evm_config,
|
||||
_marker: Default::default(),
|
||||
}
|
||||
@@ -235,7 +235,7 @@ where
|
||||
+ Clone
|
||||
+ 'static,
|
||||
{
|
||||
if !self.use_transaction_prewarming {
|
||||
if self.disable_transaction_prewarming {
|
||||
// if no transactions should be executed we clear them but still spawn the task for
|
||||
// caching updates
|
||||
transactions.clear();
|
||||
|
||||
Reference in New Issue
Block a user