Updated eth/pluginhooks to acoomodate live tracing

This commit is contained in:
philip-morlier 2021-10-11 11:43:26 -07:00
parent b7c57d47ec
commit 956eef4abe
No known key found for this signature in database
GPG Key ID: 0323A143B7B6F663

View File

@ -40,7 +40,7 @@ func (mt *metaTracer) CaptureEnd(output []byte, gasUsed uint64, t time.Duration,
func PluginUpdateBlockchainVMConfig(pl *plugins.PluginLoader, cfg *vm.Config) {
tracerList := plugins.Lookup("LiveTracer", func(item interface{}) bool {
_, ok := item.(*vm.Tracer)
_, ok := item.(core.TracerResult)
log.Info("Item is LiveTracer", "ok", ok, "type", reflect.TypeOf(item))
return ok
})