code: func blockDbPath(dbType string) string {
  	// The database name is based on the database type.
  	dbName := blockDbNamePrefix + "_" + dbType
  	if dbType == "sqlite" {
  		dbName = dbName + ".db"
  	}
  	dbPath := filepath.Join(cfg.DataDir, dbName)
  	return dbPath
  }
docs: // dbPath returns the path to the block database given a database type.