Master Core  v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
version.h
Go to the documentation of this file.
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
6 
7 #include "clientversion.h"
8 
9 #include <string>
10 
11 //
12 // client versioning
13 //
14 
15 static const int CLIENT_VERSION =
16  1000000 * CLIENT_VERSION_MAJOR
17  + 10000 * CLIENT_VERSION_MINOR
20 
21 extern const std::string CLIENT_NAME;
22 extern const std::string CLIENT_BUILD;
23 extern const std::string CLIENT_DATE;
24 extern const std::string COMMIT_INFO;
25 //
26 // network protocol versioning
27 //
28 
29 static const int PROTOCOL_VERSION = 70002;
30 
31 // intial proto version, to be increased after version/verack negotiation
32 static const int INIT_PROTO_VERSION = 209;
33 
34 // disconnect from peers older than this proto version
35 static const int MIN_PEER_PROTO_VERSION = 209;
36 
37 // nTime field added to CAddress, starting with this version;
38 // if possible, avoid requesting addresses nodes older than this
39 static const int CADDR_TIME_VERSION = 31402;
40 
41 // only request blocks from nodes outside this range of versions
42 static const int NOBLKS_VERSION_START = 32000;
43 static const int NOBLKS_VERSION_END = 32400;
44 
45 // BIP 0031, pong message, is enabled for all versions AFTER this one
46 static const int BIP0031_VERSION = 60000;
47 
48 // "mempool" command, enhanced "getdata" behavior starts with this version:
49 static const int MEMPOOL_GD_VERSION = 60002;
50 
51 #endif
static const int MEMPOOL_GD_VERSION
Definition: version.h:49
const std::string CLIENT_NAME
static const int CLIENT_VERSION
Definition: version.h:15
#define CLIENT_VERSION_MINOR
static const int BIP0031_VERSION
Definition: version.h:46
static const int NOBLKS_VERSION_START
Definition: version.h:42
const std::string COMMIT_INFO
static const int INIT_PROTO_VERSION
Definition: version.h:32
#define CLIENT_VERSION_REVISION
static const int NOBLKS_VERSION_END
Definition: version.h:43
const std::string CLIENT_BUILD
static const int MIN_PEER_PROTO_VERSION
Definition: version.h:35
static const int PROTOCOL_VERSION
Definition: version.h:29
static const int CADDR_TIME_VERSION
Definition: version.h:39
#define CLIENT_VERSION_BUILD
const std::string CLIENT_DATE
#define CLIENT_VERSION_MAJOR