diff --git a/common/version.go b/common/version.go index 8ceec23..3427df9 100644 --- a/common/version.go +++ b/common/version.go @@ -32,7 +32,7 @@ func CheckVersion(from int) { if from < PrevVersion { panic(ErrVersionMismatch + ": expected >=" + std.Itoa(PrevVersion, 10)) } - if from == Version { + if Version <= from { panic(ErrAlreadyUpdated + ": " + std.Itoa(Version, 10)) } }