Skip to content

Commit

Permalink
Create version string from integer values
Browse files Browse the repository at this point in the history
  • Loading branch information
blondfrogs committed Jul 6, 2020
1 parent 185a052 commit 627a6f0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,18 @@
#ifndef RAVEN_VERSION_H
#define RAVEN_VERSION_H

#include <tinyformat.h>
/**
* network protocol versioning
*/

// Update these four values on every release cycle
// Update these three values on every release cycle
// These values should match the values in configure.ac
// Used for checking the Ravencoin releases on github
static const std::string SOFTWARE_VERSION = "v4.2.0";
static const int MAIN_SOFTWARE_VERSION = 4;
static const int SECOND_SOFTWARE_VERSION = 2;
static const int THIRD_SOFTWARE_VERSION = 0;
static const std::string SOFTWARE_VERSION = strprintf("v%d.%d.%d", MAIN_SOFTWARE_VERSION, SECOND_SOFTWARE_VERSION, THIRD_SOFTWARE_VERSION);

static const int PROTOCOL_VERSION = 70028;

Expand Down

0 comments on commit 627a6f0

Please sign in to comment.