Hotpocket version changes (#336)

This commit is contained in:
Chalith Desaman
2021-07-28 16:33:58 +05:30
committed by GitHub
parent 866a617989
commit 4a5c3554bd
10 changed files with 27 additions and 13 deletions

View File

@@ -155,7 +155,8 @@ int main(int argc, char **argv)
if (conf::ctx.command == "version")
{
// Print the version
std::cout << "HotPocket " << version::HP_VERSION << " (ledger version " << version::LEDGER_VERSION << ")" << std::endl;
std::cout << version::HP_VERSION << " \nLedger version: " << version::LEDGER_VERSION << "\n";
return 0;
}
else
{

View File

@@ -6,13 +6,13 @@
namespace version
{
// Hot Pocket version. Written to new configs and p2p/user messages.
constexpr const char *HP_VERSION = "1.0.0";
constexpr const char *HP_VERSION = "0.5.0";
// Minimum compatible config version (this will be used to validate configs).
constexpr const char *MIN_CONFIG_VERSION = "1.0.0";
constexpr const char *MIN_CONFIG_VERSION = "0.5.0";
// Ledger file storage version. All nodes in a cluster MUST use the same ledger version.
constexpr const char *LEDGER_VERSION = "1.0.0";
constexpr const char *LEDGER_VERSION = "0.5.0";
// Version header size in bytes when serialized in binary format. (applies to hp version as well as ledger version)
// 2 bytes each for 3 version components. 2 bytes reserved.