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
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
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;
26 extern const std::string CLIENT_NAME;
27 extern const std::string CLIENT_BUILD;
28 extern const std::string CLIENT_DATE;
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 1
34 #define PPCOIN_VERSION_BUILD 0
37 // network protocol versioning
40 static const int PROTOCOL_VERSION = 60003;
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;
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;
51 // only request blocks from nodes outside this range of versions
52 static const int NOBLKS_VERSION_START = 32000;
53 static const int NOBLKS_VERSION_END = 32400;
55 // BIP 0031, pong message, is enabled for all versions AFTER this one
56 static const int BIP0031_VERSION = 60000;