remove onBeaconBlockRoot events
This commit is contained in:
parent
35291e6a8c
commit
3ba6b92dfb
|
@ -200,8 +200,6 @@ type BlockchainLogger interface {
|
||||||
OnBlockStart(block *types.Block, td *big.Int, finalized *types.Header, safe *types.Header, skip bool)
|
OnBlockStart(block *types.Block, td *big.Int, finalized *types.Header, safe *types.Header, skip bool)
|
||||||
OnBlockEnd(err error)
|
OnBlockEnd(err error)
|
||||||
OnGenesisBlock(genesis *types.Block, alloc GenesisAlloc)
|
OnGenesisBlock(genesis *types.Block, alloc GenesisAlloc)
|
||||||
OnBeaconBlockRootStart(root common.Hash)
|
|
||||||
OnBeaconBlockRootEnd()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// txLookup is wrapper over transaction lookup along with the corresponding
|
// txLookup is wrapper over transaction lookup along with the corresponding
|
||||||
|
|
|
@ -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
|
// ProcessBeaconBlockRoot applies the EIP-4788 system call to the beacon block root
|
||||||
// contract. This method is exported to be used in tests.
|
// contract. This method is exported to be used in tests.
|
||||||
func ProcessBeaconBlockRoot(beaconRoot common.Hash, vmenv *vm.EVM, statedb *state.StateDB, logger BlockchainLogger) {
|
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
|
// If EIP-4788 is enabled, we need to invoke the beaconroot storage contract with
|
||||||
// the new root
|
// the new root
|
||||||
msg := &Message{
|
msg := &Message{
|
||||||
|
|
|
@ -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) 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) {
|
func (t *noop) CaptureTxStart(env *vm.EVM, tx *types.Transaction, from common.Address) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue