mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 17:33:47 +00:00
core/tracing: remove Hooks.copy
This commit is contained in:
parent
51720dcad1
commit
4787f31828
1 changed files with 0 additions and 8 deletions
|
|
@ -209,14 +209,6 @@ type Hooks struct {
|
||||||
OnBlockHashRead BlockHashReadHook
|
OnBlockHashRead BlockHashReadHook
|
||||||
}
|
}
|
||||||
|
|
||||||
// copy creates a new Hooks instance with all implemented hooks copied from the original.
|
|
||||||
// Note: it is not a deep copy. If a hook has been implemented as a closure and acts on
|
|
||||||
// a mutable state, the copied hook will still act on the same state.
|
|
||||||
func (h *Hooks) copy() *Hooks {
|
|
||||||
c := *h
|
|
||||||
return &c
|
|
||||||
}
|
|
||||||
|
|
||||||
// BalanceChangeReason is used to indicate the reason for a balance change, useful
|
// BalanceChangeReason is used to indicate the reason for a balance change, useful
|
||||||
// for tracing and reporting.
|
// for tracing and reporting.
|
||||||
type BalanceChangeReason byte
|
type BalanceChangeReason byte
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue