mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-19 21:04:41 +00:00
1.1.5 merge spec tests (#2781)
* Fix arbitrary check kintsugi * Add merge chain spec fields, and a function to determine which constant to use based on the state variant * increment spec test version * Remove `Transaction` enum wrapper * Remove Transaction new-type * Remove gas validations * Add `--terminal-block-hash-epoch-override` flag * Increment spec tests version to 1.1.5 * Remove extraneous gossip verification https://github.com/ethereum/consensus-specs/pull/2687 * - Remove unused Error variants - Require both "terminal-block-hash-epoch-override" and "terminal-block-hash-override" when either flag is used * - Remove a couple more unused Error variants Co-authored-by: Paul Hauner <paul@paulhauner.com>
This commit is contained in:
@@ -278,18 +278,6 @@ pub enum ExecutionPayloadError {
|
||||
///
|
||||
/// The block is invalid and the peer is faulty
|
||||
InvalidPayloadTimestamp { expected: u64, found: u64 },
|
||||
/// The gas used in the block exceeds the gas limit
|
||||
///
|
||||
/// ## Peer scoring
|
||||
///
|
||||
/// The block is invalid and the peer is faulty
|
||||
GasUsedExceedsLimit,
|
||||
/// The payload block hash equals the parent hash
|
||||
///
|
||||
/// ## Peer scoring
|
||||
///
|
||||
/// The block is invalid and the peer is faulty
|
||||
BlockHashEqualsParentHash,
|
||||
/// The execution payload transaction list data exceeds size limits
|
||||
///
|
||||
/// ## Peer scoring
|
||||
@@ -1353,18 +1341,6 @@ fn validate_execution_payload<T: BeaconChainTypes>(
|
||||
},
|
||||
));
|
||||
}
|
||||
// Gas used is less than the gas limit
|
||||
if execution_payload.gas_used > execution_payload.gas_limit {
|
||||
return Err(BlockError::ExecutionPayloadError(
|
||||
ExecutionPayloadError::GasUsedExceedsLimit,
|
||||
));
|
||||
}
|
||||
// The execution payload block hash is not equal to the parent hash
|
||||
if execution_payload.block_hash == execution_payload.parent_hash {
|
||||
return Err(BlockError::ExecutionPayloadError(
|
||||
ExecutionPayloadError::BlockHashEqualsParentHash,
|
||||
));
|
||||
}
|
||||
// The execution payload transaction list data is within expected size limits
|
||||
if execution_payload.transactions.len() > T::EthSpec::max_transactions_per_payload() {
|
||||
return Err(BlockError::ExecutionPayloadError(
|
||||
|
||||
Reference in New Issue
Block a user