Skip to content

Commit

Permalink
revert block init hook
Browse files Browse the repository at this point in the history
  • Loading branch information
dhyaniarun1993 committed Mar 25, 2024
1 parent 280ad59 commit 76296f4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions core/tracing/hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ 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)
Expand Down Expand Up @@ -150,9 +153,10 @@ type Hooks struct {
OnFault FaultHook
OnGasChange GasChangeHook
// Chain events
OnBlockStart BlockStartHook
OnBlockEnd BlockEndHook
OnGenesisBlock GenesisBlockHook
OnBlockchainInit BlockchainInitHook
OnBlockStart BlockStartHook
OnBlockEnd BlockEndHook
OnGenesisBlock GenesisBlockHook
// State events
OnBalanceChange BalanceChangeHook
OnNonceChange NonceChangeHook
Expand Down

0 comments on commit 76296f4

Please sign in to comment.