]>
Commit | Line | Data |
---|---|---|
f914f1a7 | 1 | // Copyright (c) 2012-2014 The Bitcoin Core developers |
6395ba30 | 2 | // Distributed under the MIT software license, see the accompanying |
3a25a2b9 | 3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. |
093303a8 | 4 | |
a20c0d0f PW |
5 | #ifndef BITCOIN_VERSION_H |
6 | #define BITCOIN_VERSION_H | |
7 | ||
6395ba30 MF |
8 | /** |
9 | * network protocol versioning | |
10 | */ | |
b87c0fc4 | 11 | |
697cc53b | 12 | static const int PROTOCOL_VERSION = 170002; |
a20c0d0f | 13 | |
6395ba30 | 14 | //! initial proto version, to be increased after version/verack negotiation |
1ce41892 WT |
15 | static const int INIT_PROTO_VERSION = 209; |
16 | ||
6395ba30 | 17 | //! In this version, 'getheaders' was introduced. |
341735eb PW |
18 | static const int GETHEADERS_VERSION = 31800; |
19 | ||
6395ba30 | 20 | //! disconnect from peers older than this proto version |
697cc53b | 21 | static const int MIN_PEER_PROTO_VERSION = 170002; |
8b09cd3a | 22 | |
6395ba30 MF |
23 | //! nTime field added to CAddress, starting with this version; |
24 | //! if possible, avoid requesting addresses nodes older than this | |
8b09cd3a JG |
25 | static const int CADDR_TIME_VERSION = 31402; |
26 | ||
6395ba30 | 27 | //! only request blocks from nodes outside this range of versions |
8b09cd3a JG |
28 | static const int NOBLKS_VERSION_START = 32000; |
29 | static const int NOBLKS_VERSION_END = 32400; | |
30 | ||
6395ba30 | 31 | //! BIP 0031, pong message, is enabled for all versions AFTER this one |
b87c0fc4 | 32 | static const int BIP0031_VERSION = 60000; |
93e447b6 | 33 | |
6395ba30 | 34 | //! "mempool" command, enhanced "getdata" behavior starts with this version |
05a85b2b JG |
35 | static const int MEMPOOL_GD_VERSION = 60002; |
36 | ||
093303a8 | 37 | #endif // BITCOIN_VERSION_H |