perf(payload): remove unnecessary parent_header clone (#20930)

This commit is contained in:
David Klank
2026-01-11 17:07:51 +02:00
committed by GitHub
parent 12c4c04f7d
commit 5d551eab29

View File

@@ -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(),