diff --git a/server/server.go b/server/server.go index 74021f93e..e896c7dec 100644 --- a/server/server.go +++ b/server/server.go @@ -559,6 +559,10 @@ func (s *Server) loadConfig(cfg *Config) error { return err } + if cfg.Version != RepositoryVersion { + return errors.New("unsupported repository version") + } + if !cfg.ChunkerPolynomial.Irreducible() { return errors.New("invalid chunker polynomial") }