rm tracing.Backend

Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
jsvisa 2024-09-30 22:24:38 +08:00
parent 9ae1444d48
commit 2f621cb724

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