Bump version to 0.3.4
[novacoin.git] / src / version.h
1 // Copyright (c) 2012 The Bitcoin developers
2 // Copyright (c) 2012-2013 The PPCoin developers
3 // Distributed under the MIT/X11 software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 #ifndef BITCOIN_VERSION_H
6 #define BITCOIN_VERSION_H
7
8 #include <string>
9
10 //
11 // client versioning
12 //
13
14 // These need to be macro's, as version.cpp's voodoo requires it
15 #define CLIENT_VERSION_MAJOR       0
16 #define CLIENT_VERSION_MINOR       6
17 #define CLIENT_VERSION_REVISION    3
18 #define CLIENT_VERSION_BUILD       0
19
20 static const int CLIENT_VERSION =
21                            1000000 * CLIENT_VERSION_MAJOR
22                          +   10000 * CLIENT_VERSION_MINOR 
23                          +     100 * CLIENT_VERSION_REVISION
24                          +       1 * CLIENT_VERSION_BUILD;
25
26 extern const std::string CLIENT_NAME;
27 extern const std::string CLIENT_BUILD;
28 extern const std::string CLIENT_DATE;
29
30 // ppcoin version - intended for display purpose ONLY
31 #define PPCOIN_VERSION_MAJOR       0
32 #define PPCOIN_VERSION_MINOR       3
33 #define PPCOIN_VERSION_REVISION    4
34 #define PPCOIN_VERSION_BUILD       0
35
36 //
37 // network protocol versioning
38 //
39
40 static const int PROTOCOL_VERSION = 60004;
41
42 // earlier versions not supported as of Feb 2012, and are disconnected
43 // NOTE: as of bitcoin v0.6 message serialization (vSend, vRecv) still
44 // uses MIN_PROTO_VERSION(209), where message format uses PROTOCOL_VERSION
45 static const int MIN_PROTO_VERSION = 209;
46
47 // nTime field added to CAddress, starting with this version;
48 // if possible, avoid requesting addresses nodes older than this
49 static const int CADDR_TIME_VERSION = 31402;
50
51 // only request blocks from nodes outside this range of versions
52 static const int NOBLKS_VERSION_START = 60002;
53 static const int NOBLKS_VERSION_END = 60003;
54
55 // BIP 0031, pong message, is enabled for all versions AFTER this one
56 static const int BIP0031_VERSION = 60000;
57
58 #endif