mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: make InvalidBlockHook generic over NodePrimitives (#13105)
This commit is contained in:
@ -152,7 +152,7 @@ where
|
||||
let env = self.evm_env_for_block(&block.header, total_difficulty);
|
||||
let mut evm = self.evm_config.evm_with_env(&mut self.state, env);
|
||||
|
||||
self.system_caller.apply_pre_execution_changes(block, &mut evm)?;
|
||||
self.system_caller.apply_pre_execution_changes(&block.block, &mut evm)?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
@ -247,7 +247,7 @@ where
|
||||
drop(evm);
|
||||
|
||||
let mut balance_increments =
|
||||
post_block_balance_increments(&self.chain_spec, block, total_difficulty);
|
||||
post_block_balance_increments(&self.chain_spec, &block.block, total_difficulty);
|
||||
|
||||
// Irregular state change at Ethereum DAO hardfork
|
||||
if self.chain_spec.fork(EthereumHardfork::Dao).transitions_at_block(block.number) {
|
||||
|
||||
Reference in New Issue
Block a user