Delete OTB verification service (#6631)

* Delete OTB verification service

* Merge branch 'unstable' into delete-otb
This commit is contained in:
Michael Sproul
2024-12-19 16:46:06 +11:00
committed by GitHub
parent b2b1faad4e
commit 07e82dabc0
5 changed files with 1 additions and 389 deletions

View File

@@ -7,7 +7,6 @@
//! So, this module contains functions that one might expect to find in other crates, but they live
//! here for good reason.
use crate::otb_verification_service::OptimisticTransitionBlock;
use crate::{
BeaconChain, BeaconChainError, BeaconChainTypes, BlockError, BlockProductionError,
ExecutionPayloadError,
@@ -284,9 +283,6 @@ pub async fn validate_merge_block<'a, T: BeaconChainTypes>(
"block_hash" => ?execution_payload.parent_hash(),
"msg" => "the terminal block/parent was unavailable"
);
// Store Optimistic Transition Block in Database for later Verification
OptimisticTransitionBlock::from_block(block)
.persist_in_store::<T, _>(&chain.store)?;
Ok(())
} else {
Err(ExecutionPayloadError::UnverifiedNonOptimisticCandidate.into())