mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-20 02:27:51 +01:00
8f94e8b943
Rework the logic of the version check used in the database migration, and make sure that it is full functional to avoid confusion at release time. Changelog-Fixed: database: Correctly identity official release versions for database upgrade. Reported-by: @urza Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
17 lines
344 B
C
17 lines
344 B
C
#include "config.h"
|
|
#include "../version.c"
|
|
#include <common/setup.h>
|
|
#include <assert.h>
|
|
#include <stdio.h>
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
common_setup(argv[0]);
|
|
|
|
assert(cmp_release_version("v22.11"));
|
|
assert(cmp_release_version("v22.11.1"));
|
|
assert(cmp_release_version("v22.11.1-6-gdf29990-modded") == false);
|
|
|
|
common_shutdown();
|
|
}
|