common: Disallow downgrading contracts #103

Merged
fyrchik merged 1 commit from fyrchik/frostfs-contract:disallow-downgrade into master 2024-08-19 12:28:46 +00:00

1 commit

Author SHA1 Message Date
ba7329c3a7 [#103] common: Disallow downgrading contracts
All checks were successful
DCO action / DCO (pull_request) Successful in 37s
Tests / Tests (1.21) (pull_request) Successful in 1m11s
Tests / Tests (1.22) (pull_request) Successful in 1m11s
`PrevVersion` marks suitable version that we can upgrade from.
However, we can have multiple minor versions, so, currently an upgrade
from v0.19.3 to v0.19.1 is possible. Prevent this with an additional
check.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2024-08-19 13:57:03 +03:00