public TResult ExecuteBundle(MevBundle bundle, BlockHeader parent, CancellationToken cancellationToken, UInt256?timestamp = null)
        {
            Block        block       = BuildBlock(bundle, parent, timestamp);
            TBlockTracer blockTracer = CreateBlockTracer(bundle);
            ITracer      tracer      = _tracerFactory.Create();

            tracer.Trace(block, blockTracer.WithCancellation(cancellationToken));
            return(BuildResult(bundle, blockTracer));
        }
Exemple #2
0
 public InstrumentationContext(ITracerFactory tracerFactory)
 {
     _       = tracerFactory ?? throw new ArgumentNullException(nameof(tracerFactory));
     _tracer = tracerFactory.Create();
 }