]> Git Repo - VerusCoin.git/blob - src/version.h
Merge pull request #4787
[VerusCoin.git] / src / version.h
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
5 #ifndef BITCOIN_VERSION_H
6 #define BITCOIN_VERSION_H
7
8 #include "clientversion.h"
9
10 #include <string>
11 #include <vector>
12
13 //
14 // client versioning
15 //
16
17 static const int CLIENT_VERSION =
18                            1000000 * CLIENT_VERSION_MAJOR
19                          +   10000 * CLIENT_VERSION_MINOR
20                          +     100 * CLIENT_VERSION_REVISION
21                          +       1 * CLIENT_VERSION_BUILD;
22
23 extern const std::string CLIENT_NAME;
24 extern const std::string CLIENT_BUILD;
25 extern const std::string CLIENT_DATE;
26
27 //
28 // network protocol versioning
29 //
30
31 static const int PROTOCOL_VERSION = 70002;
32
33 // initial proto version, to be increased after version/verack negotiation
34 static const int INIT_PROTO_VERSION = 209;
35
36 // disconnect from peers older than this proto version
37 static const int MIN_PEER_PROTO_VERSION = 209;
38
39 // nTime field added to CAddress, starting with this version;
40 // if possible, avoid requesting addresses nodes older than this
41 static const int CADDR_TIME_VERSION = 31402;
42
43 // only request blocks from nodes outside this range of versions
44 static const int NOBLKS_VERSION_START = 32000;
45 static const int NOBLKS_VERSION_END = 32400;
46
47 // BIP 0031, pong message, is enabled for all versions AFTER this one
48 static const int BIP0031_VERSION = 60000;
49
50 // "mempool" command, enhanced "getdata" behavior starts with this version
51 static const int MEMPOOL_GD_VERSION = 60002;
52
53 std::string FormatFullVersion();
54 std::string FormatSubVersion(const std::string& name, int nClientVersion, const std::vector<std::string>& comments);
55
56 #endif // BITCOIN_VERSION_H
This page took 0.026229 seconds and 4 git commands to generate.