drop OnReorg
This commit is contained in:
parent
85a85d09c7
commit
2754b414ed
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -216,7 +216,6 @@ type Hooks struct {
|
|||
OnBlockEnd BlockEndHook
|
||||
OnSkippedBlock SkippedBlockHook
|
||||
OnGenesisBlock GenesisBlockHook
|
||||
OnReorg ReorgHook
|
||||
OnSystemCallStart OnSystemCallStartHook
|
||||
OnSystemCallStartV2 OnSystemCallStartHookV2
|
||||
OnSystemCallEnd OnSystemCallEndHook
|
||||
|
|
|
@ -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) {
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue