Back to home page

Bitcoin sources

 
 

    


File indexing completed on 2020-06-25 20:12:23

0001 // Copyright (c) 2012 The Bitcoin developers
0002 // Distributed under the MIT/X11 software license, see the accompanying
0003 // file license.txt or http://www.opensource.org/licenses/mit-license.php.
0004 #ifndef BITCOIN_VERSION_H
0005 #define BITCOIN_VERSION_H
0006 
0007 #include <string>
0008 
0009 //
0010 // client versioning
0011 //
0012 
0013 static const int CLIENT_VERSION_MAJOR       =  0;
0014 static const int CLIENT_VERSION_MINOR       =  6;
0015 static const int CLIENT_VERSION_REVISION    =  1;
0016 static const int CLIENT_VERSION_BUILD       = 1;
0017 
0018 static const int CLIENT_VERSION =
0019                            1000000 * CLIENT_VERSION_MAJOR
0020                          +   10000 * CLIENT_VERSION_MINOR 
0021                          +     100 * CLIENT_VERSION_REVISION
0022                          +       1 * CLIENT_VERSION_BUILD;
0023 
0024 extern const std::string CLIENT_NAME;
0025 extern const std::string CLIENT_BUILD;
0026 extern const std::string CLIENT_DATE;
0027 
0028 //
0029 // network protocol versioning
0030 //
0031 
0032 static const int PROTOCOL_VERSION = 60001;
0033 
0034 // earlier versions not supported as of Feb 2012, and are disconnected
0035 static const int MIN_PROTO_VERSION = 209;
0036 
0037 // nTime field added to CAddress, starting with this version;
0038 // if possible, avoid requesting addresses nodes older than this
0039 static const int CADDR_TIME_VERSION = 31402;
0040 
0041 // only request blocks from nodes outside this range of versions
0042 static const int NOBLKS_VERSION_START = 32000;
0043 static const int NOBLKS_VERSION_END = 32400;
0044 
0045 // BIP 0031, pong message, is enabled for all versions AFTER this one
0046 static const int BIP0031_VERSION = 60000;
0047 
0048 #endif