Merge pull request #5 from openrelayxyz/feature/isSynced-improvement

Updated eth/pluginhooks to acoomodate live tracing
This commit is contained in:
AusIV 2021-10-11 13:48:49 -05:00 committed by GitHub
commit 6a86c8934a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) { func PluginUpdateBlockchainVMConfig(pl *plugins.PluginLoader, cfg *vm.Config) {
tracerList := plugins.Lookup("LiveTracer", func(item interface{}) bool { 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)) log.Info("Item is LiveTracer", "ok", ok, "type", reflect.TypeOf(item))
return ok return ok
}) })