Merge branch 'lazy-init-tracer' of github.com:jsvisa/go-ethereum into lazy-init-tracer

This commit is contained in:
Sina Mahmoodi 2024-10-01 13:07:42 +02:00
commit 5be4b07fb7

View file

@ -183,7 +183,6 @@ type (
) )
type Hooks struct { type Hooks struct {
Backend Backend
// VM events // VM events
OnTxStart TxStartHook OnTxStart TxStartHook
OnTxEnd TxEndHook OnTxEnd TxEndHook
@ -209,11 +208,6 @@ type Hooks struct {
OnLog LogHook OnLog LogHook
} }
// SetBackend sets a backend to the hooks, use this backend to read chain data.
func (h *Hooks) SetBackend(backend Backend) {
h.Backend = backend
}
// 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