Skip to content

Commit

Permalink
removed geth specific hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
dhyaniarun1993 committed Mar 25, 2024
1 parent fe95fa9 commit 280ad59
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions core/tracing/hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,21 +110,13 @@ type (
- Chain events -
*/

// BlockchainInitHook is called when the blockchain is initialized.
BlockchainInitHook = func(chainConfig *chain.Config)

// BlockStartHook is called before executing `block`.
// `td` is the total difficulty prior to `block`.
BlockStartHook = func(event BlockEvent)

// BlockEndHook is called after executing a block.
BlockEndHook = func(err error)

// SkippedBlockHook indicates a block was skipped during processing
// due to it being known previously. This can happen e.g. when recovering
// from a crash.
SkippedBlockHook = func(event BlockEvent)

// GenesisBlockHook is called when the genesis block is being processed.
GenesisBlockHook = func(genesis *types.Block, alloc types.GenesisAlloc)

Expand Down Expand Up @@ -158,11 +150,9 @@ type Hooks struct {
OnFault FaultHook
OnGasChange GasChangeHook
// Chain events
OnBlockchainInit BlockchainInitHook
OnBlockStart BlockStartHook
OnBlockEnd BlockEndHook
OnSkippedBlock SkippedBlockHook
OnGenesisBlock GenesisBlockHook
OnBlockStart BlockStartHook
OnBlockEnd BlockEndHook
OnGenesisBlock GenesisBlockHook
// State events
OnBalanceChange BalanceChangeHook
OnNonceChange NonceChangeHook
Expand Down

0 comments on commit 280ad59

Please sign in to comment.