TraceBlockByHash returns the structured logs created during the execution of EVM and returns them as a JSON object.
(ctx context.Context, hash common.Hash, config *TraceConfig)
| 371 | // TraceBlockByHash returns the structured logs created during the execution of |
| 372 | // EVM and returns them as a JSON object. |
| 373 | func (api *PrivateDebugAPI) TraceBlockByHash(ctx context.Context, hash common.Hash, config *TraceConfig) ([]*txTraceResult, error) { |
| 374 | block := api.cpc.blockchain.GetBlockByHash(hash) |
| 375 | if block == nil { |
| 376 | return nil, fmt.Errorf("block #%x not found", hash) |
| 377 | } |
| 378 | return api.traceBlock(ctx, block, config) |
| 379 | } |
| 380 | |
| 381 | // TraceBlock returns the structured logs created during the execution of EVM |
| 382 | // and returns them as a JSON object. |
nothing calls this directly
no test coverage detected