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