Version management refactor. (#278)

- Introduced separate versioning for ledger file storage.
- Refactored versioning information code base.
This commit is contained in:
Ravin Perera
2021-03-31 10:19:12 +05:30
committed by GitHub
parent ef42d4c986
commit 99c5912f14
18 changed files with 191 additions and 158 deletions

View File

@@ -1,4 +1,5 @@
#include "../../pchheader.hpp"
#include "../../util/version.hpp"
#include "../../util/util.hpp"
#include "../../util/merkle_hash_tree.hpp"
#include "../../unl.hpp"
@@ -60,7 +61,7 @@ namespace msg::usrmsg::json
msg += "{\"";
msg += msg::usrmsg::FLD_HP_VERSION;
msg += SEP_COLON;
msg += conf::cfg.hp_version;
msg += version::HP_VERSION;
msg += SEP_COMMA;
msg += msg::usrmsg::FLD_TYPE;
msg += SEP_COLON;
@@ -151,7 +152,7 @@ namespace msg::usrmsg::json
msg += SEP_COMMA;
msg += msg::usrmsg::FLD_HP_VERSION;
msg += SEP_COLON;
msg += conf::cfg.hp_version;
msg += version::HP_VERSION;
msg += SEP_COMMA;
msg += msg::usrmsg::FLD_LCL_SEQ;
msg += SEP_COLON_NOQUOTE;