Remove unnecessary check

This commit is contained in:
Jimmy Chen
2026-04-28 00:09:13 +02:00
parent 77d288cb48
commit fb02b67555

View File

@@ -228,9 +228,6 @@ impl<E: EthSpec> OperationPool<E> {
parent_block_root: Hash256,
spec: &ChainSpec,
) -> Result<Vec<PayloadAttestation<E>>, OpPoolError> {
if state.slot() == 0 {
return Ok(vec![]);
}
let target_slot = state.slot().saturating_sub(1u64);
let ptc = state