drop OnReorg

This commit is contained in:
Sina Mahmoodi 2024-10-17 11:07:58 +02:00
parent 85a85d09c7
commit 2754b414ed
3 changed files with 0 additions and 7 deletions

View File

@ -2359,9 +2359,6 @@ func (bc *BlockChain) reorg(oldHead *types.Header, newHead *types.Block) error {
bc.logsFeed.Send(rebirthLogs)
}
if bc.logger != nil && bc.logger.OnReorg != nil {
bc.logger.OnReorg(oldChain)
}
return nil
}

View File

@ -216,7 +216,6 @@ type Hooks struct {
OnBlockEnd BlockEndHook
OnSkippedBlock SkippedBlockHook
OnGenesisBlock GenesisBlockHook
OnReorg ReorgHook
OnSystemCallStart OnSystemCallStartHook
OnSystemCallStartV2 OnSystemCallStartHookV2
OnSystemCallEnd OnSystemCallEndHook

View File

@ -36,7 +36,6 @@ func newNoopTracer(_ json.RawMessage) (*tracing.Hooks, error) {
OnBlockEnd: t.OnBlockEnd,
OnSkippedBlock: t.OnSkippedBlock,
OnGenesisBlock: t.OnGenesisBlock,
OnReorg: t.OnReorg,
OnBalanceChange: t.OnBalanceChange,
OnNonceChange: t.OnNonceChange,
OnCodeChange: t.OnCodeChange,
@ -84,8 +83,6 @@ func (t *noop) OnBlockchainInit(chainConfig *params.ChainConfig) {
func (t *noop) OnGenesisBlock(b *types.Block, alloc types.GenesisAlloc) {
}
func (t *noop) OnReorg(reverted []*types.Block) {}
func (t *noop) OnBalanceChange(a common.Address, prev, new *big.Int, reason tracing.BalanceChangeReason) {
}