mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
refactor: remove PostExecutionInput (#14464)
This commit is contained in:
@ -26,7 +26,7 @@ use reth_chain_state::{
|
||||
CanonicalInMemoryState, ExecutedBlock, ExecutedBlockWithTrieUpdates,
|
||||
MemoryOverlayStateProvider, NewCanonicalChain,
|
||||
};
|
||||
use reth_consensus::{Consensus, FullConsensus, PostExecutionInput};
|
||||
use reth_consensus::{Consensus, FullConsensus};
|
||||
pub use reth_engine_primitives::InvalidBlockHook;
|
||||
use reth_engine_primitives::{
|
||||
BeaconConsensusEngineEvent, BeaconEngineMessage, BeaconOnNewPayloadError, EngineTypes,
|
||||
@ -2527,10 +2527,7 @@ where
|
||||
// Ensure that prewarm tasks don't send proof messages after state root sender is dropped
|
||||
cancel_execution.cancel();
|
||||
|
||||
if let Err(err) = self.consensus.validate_block_post_execution(
|
||||
&block,
|
||||
PostExecutionInput::new(&output.receipts, &output.requests),
|
||||
) {
|
||||
if let Err(err) = self.consensus.validate_block_post_execution(&block, &output) {
|
||||
// call post-block hook
|
||||
self.invalid_block_hook.on_invalid_block(&parent_block, &block, &output, None);
|
||||
return Err(err.into())
|
||||
|
||||
Reference in New Issue
Block a user