perf: shortcircuit if new payload is worse (#2224)

This commit is contained in:
Matthias Seitz
2023-04-13 15:57:09 +02:00
committed by GitHub
parent a763dff7dd
commit 35f7c6d8cf
2 changed files with 51 additions and 33 deletions

View File

@ -16,11 +16,6 @@ pub enum PayloadBuilderError {
/// Other internal error
#[error(transparent)]
Internal(#[from] reth_interfaces::Error),
// TODO move to standalone error type specific to job
/// Thrown if a running build job has been cancelled.
#[error("build job cancelled during execution")]
BuildJobCancelled,
/// Unrecoverable error during evm execution.
#[error("evm execution error: {0:?}")]
EvmExecutionError(EVMError<reth_interfaces::Error>),