mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-08 03:01:12 -04:00
perf(payload): remove unnecessary parent_header clone (#20930)
This commit is contained in:
@@ -158,13 +158,13 @@ where
|
||||
.ok_or_else(|| PayloadBuilderError::MissingParentHeader(attributes.parent()))?
|
||||
};
|
||||
|
||||
let config = PayloadConfig::new(Arc::new(parent_header.clone()), attributes);
|
||||
let cached_reads = self.maybe_pre_cached(parent_header.hash());
|
||||
|
||||
let config = PayloadConfig::new(Arc::new(parent_header), attributes);
|
||||
|
||||
let until = self.job_deadline(config.attributes.timestamp());
|
||||
let deadline = Box::pin(tokio::time::sleep_until(until));
|
||||
|
||||
let cached_reads = self.maybe_pre_cached(parent_header.hash());
|
||||
|
||||
let mut job = BasicPayloadJob {
|
||||
config,
|
||||
executor: self.executor.clone(),
|
||||
|
||||
Reference in New Issue
Block a user