updated eth/tracers/plugin_hooks.go to reflect attempts to address Wednesday 9/15/21 problems with tracer plugin

This commit is contained in:
philip-morlier 2021-09-15 16:13:38 -07:00
parent ea0f27c92d
commit 86fd4f27e2
No known key found for this signature in database
GPG Key ID: 0323A143B7B6F663

View File

@ -13,7 +13,7 @@ import (
func GetPluginTracer(pl *plugins.PluginLoader, name string) (func(*state.StateDB) interfaces.TracerResult, bool) {
tracers := pl.Lookup("Tracers", func(item interface{}) bool {
_, ok := item.(*map[string]func(*state.StateDB) interfaces.TracerResult)
_, ok := item.(*map[string]func(core.StateDB) core.TracerResult)
if !ok {
log.Warn("Found tracer that did not match type", "tracer", reflect.TypeOf(item))
}