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
7 #include "clientversion.h"
14 static const int CLIENT_VERSION =
15 1000000 * CLIENT_VERSION_MAJOR
16 + 10000 * CLIENT_VERSION_MINOR
17 + 100 * CLIENT_VERSION_REVISION
18 + 1 * CLIENT_VERSION_BUILD;
20 extern const std::string CLIENT_NAME;
21 extern const std::string CLIENT_BUILD;
22 extern const std::string CLIENT_DATE;
25 // network protocol versioning
28 static const int PROTOCOL_VERSION = 60009;
30 // earlier versions not supported as of Feb 2012, and are disconnected
31 static const int MIN_PROTO_VERSION = 209;
33 // nTime field added to CAddress, starting with this version;
34 // if possible, avoid requesting addresses nodes older than this
35 static const int CADDR_TIME_VERSION = 31402;
37 // only request blocks from nodes outside this range of versions
38 static const int NOBLKS_VERSION_START = 60002;
39 static const int NOBLKS_VERSION_END = 60006;
41 // BIP 0031, pong message, is enabled for all versions AFTER this one
42 static const int BIP0031_VERSION = 60000;
44 // "mempool" command, enhanced "getdata" behavior starts with this version:
45 static const int MEMPOOL_GD_VERSION = 60002;
47 #define DISPLAY_VERSION_MAJOR 0
48 #define DISPLAY_VERSION_MINOR 4
49 #define DISPLAY_VERSION_REVISION 4
50 #define DISPLAY_VERSION_BUILD 3