Skip to content

Commit

Permalink
Merge branch 'mempool-feed-stage' into mempool-test
Browse files Browse the repository at this point in the history
  • Loading branch information
lukanus authored Mar 11, 2024
2 parents 1d1e925 + eab795d commit 8a06932
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions eth/filters/trace_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,18 +191,17 @@ func (api *FilterAPI) NewFullBlocksWithTrace(ctx context.Context, tracerOptsJSON
log.Error("failed to marshal block", "err", err, "block", block.Number())
continue
}

trace, _ := traceBlock(block, chainConfig, api.sys.chain, tracerOpts)
// if err != nil {
// log.Info("failed to trace block", "err", err, "hash", hash, "block", block.Number())
// continue
// }

marshalBlock["trace"] = trace
marshalReceipts := make(map[common.Hash]map[string]interface{})
receipts, err := api.sys.backend.GetReceipts(ctx, hash)
if err != nil {
log.Error("failed to `get receipts for block", "err", err, "hash ", hash, "block", block.Number())
log.Error("failed to get receipts for block", "err", err, "hash ", hash, "block", block.Number())
continue
}
for index, receipt := range receipts {
Expand Down Expand Up @@ -242,7 +241,7 @@ func traceTx(message *core.Message, txCtx *tracers.Context, vmctx vm.BlockContex
tracer, err := blocknative.NewTracerWithOpts(tracerOpts)
if err != nil {
return nil, err
}
}
vmenv := vm.NewEVM(vmctx, core.NewEVMTxContext(message), statedb, chainConfig, vm.Config{Tracer: tracer, NoBaseFee: true})
statedb.SetTxContext(txCtx.TxHash, txCtx.TxIndex)

Expand Down

0 comments on commit 8a06932

Please sign in to comment.