code: func (api *PrivateDebugAPI) StandardTraceBadBlockToFile(ctx context.Context, hash common.Hash, config *StdTraceConfig) ([]string, error) {
  	blocks := api.eth.blockchain.BadBlocks()
  	for _, block := range blocks {
  		if block.Hash() == hash {
  			return api.standardTraceBlockToFile(ctx, block, config)
  		}
  	}
  	return nil, fmt.Errorf("bad block %#x not found", hash)
  }
docs: // StandardTraceBadBlockToFile dumps the structured logs created during the
  // execution of EVM against a block pulled from the pool of bad ones to the
  // local file system and returns a list of files to the caller.