aboutsummaryrefslogtreecommitdiff
path: root/src/version.h
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2012-04-12 12:23:58 -0400
committerJeff Garzik <jgarzik@redhat.com>2012-04-12 12:23:58 -0400
commitb87c0fc4403040185b625d1b21bbff0cb7c828d7 (patch)
tree087f87f514d5b0af5ec7b0b73b875fe4086e926e /src/version.h
parent93e447b631440aee505a7c884a59c0885f9d968c (diff)
version.h: separate client, net sections. Move more constants to this file.
* move PROTOCOL_VERSION to version.h * move CLIENT_VERSION* to version.h, make available past cpp stage * clearly separate client, network version portions of version.h
Diffstat (limited to 'src/version.h')
-rw-r--r--src/version.h24
1 files changed, 22 insertions, 2 deletions
diff --git a/src/version.h b/src/version.h
index e0e216aad4..1ea1a0dbbb 100644
--- a/src/version.h
+++ b/src/version.h
@@ -6,12 +6,32 @@
#include <string>
+//
+// client versioning
+//
+
+static const int CLIENT_VERSION_MAJOR = 0;
+static const int CLIENT_VERSION_MINOR = 6;
+static const int CLIENT_VERSION_REVISION = 0;
+static const int CLIENT_VERSION_BUILD = 99;
+
+static const int CLIENT_VERSION =
+ 1000000 * CLIENT_VERSION_MAJOR
+ + 10000 * CLIENT_VERSION_MINOR
+ + 100 * CLIENT_VERSION_REVISION
+ + 1 * CLIENT_VERSION_BUILD;
+
extern const std::string CLIENT_NAME;
extern const std::string CLIENT_BUILD;
extern const std::string CLIENT_DATE;
-extern const int CLIENT_VERSION;
+
+//
+// network protocol versioning
+//
+
+static const int PROTOCOL_VERSION = 60000;
// BIP 0031, pong message, is enabled for all versions AFTER this one
-const int BIP0031_VERSION = 60000;
+static const int BIP0031_VERSION = 60000;
#endif