remove onBeaconBlockRoot events

This commit is contained in:
Sina Mahmoodi 2024-02-15 16:05:55 +01:00
parent 35291e6a8c
commit 3ba6b92dfb
3 changed files with 0 additions and 11 deletions

View File

@ -200,8 +200,6 @@ type BlockchainLogger interface {
OnBlockStart(block *types.Block, td *big.Int, finalized *types.Header, safe *types.Header, skip bool)
OnBlockEnd(err error)
OnGenesisBlock(genesis *types.Block, alloc GenesisAlloc)
OnBeaconBlockRootStart(root common.Hash)
OnBeaconBlockRootEnd()
}
// txLookup is wrapper over transaction lookup along with the corresponding

View File

@ -184,12 +184,6 @@ func ApplyTransaction(config *params.ChainConfig, bc ChainContext, author *commo
// ProcessBeaconBlockRoot applies the EIP-4788 system call to the beacon block root
// contract. This method is exported to be used in tests.
func ProcessBeaconBlockRoot(beaconRoot common.Hash, vmenv *vm.EVM, statedb *state.StateDB, logger BlockchainLogger) {
if logger != nil {
logger.OnBeaconBlockRootStart(beaconRoot)
defer func() {
logger.OnBeaconBlockRootEnd()
}()
}
// If EIP-4788 is enabled, we need to invoke the beaconroot storage contract with
// the new root
msg := &Message{

View File

@ -55,9 +55,6 @@ func (t *noop) CaptureEnter(typ vm.OpCode, from common.Address, to common.Addres
func (t *noop) CaptureExit(output []byte, gasUsed uint64, err error, reverted bool) {
}
func (t *noop) OnBeaconBlockRootStart(root common.Hash) {}
func (t *noop) OnBeaconBlockRootEnd() {}
func (t *noop) CaptureTxStart(env *vm.EVM, tx *types.Transaction, from common.Address) {
}