code: func (api *PrivateDebugAPI) TraceBadBlock(ctx context.Context, hash common.Hash, config *TraceConfig) ([]*txTraceResult, error) {
  	blocks := api.eth.blockchain.BadBlocks()
  	for _, block := range blocks {
  		if block.Hash() == hash {
  			return api.traceBlock(ctx, block, config)
  		}
  	}
  	return nil, fmt.Errorf("bad block %#x not found", hash)
  }
docs: // TraceBadBlockByHash returns the structured logs created during the execution of
  // EVM against a block pulled from the pool of bad ones and returns them as a JSON
  // object.