Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

version.h 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. // Copyright (c) 2012 The Bitcoin developers
  2. // Distributed under the MIT/X11 software license, see the accompanying
  3. // file license.txt or http://www.opensource.org/licenses/mit-license.php.
  4. #ifndef BITCOIN_VERSION_H
  5. #define BITCOIN_VERSION_H
  6. #include <string>
  7. //
  8. // client versioning
  9. //
  10. static const int CLIENT_VERSION_MAJOR = 0;
  11. static const int CLIENT_VERSION_MINOR = 6;
  12. static const int CLIENT_VERSION_REVISION = 99;
  13. static const int CLIENT_VERSION_BUILD = 0;
  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;
  19. extern const std::string CLIENT_NAME;
  20. extern const std::string CLIENT_BUILD;
  21. extern const std::string CLIENT_DATE;
  22. //
  23. // network protocol versioning
  24. //
  25. static const int PROTOCOL_VERSION = 60001;
  26. // earlier versions not supported as of Feb 2012, and are disconnected
  27. static const int MIN_PROTO_VERSION = 209;
  28. // nTime field added to CAddress, starting with this version;
  29. // if possible, avoid requesting addresses nodes older than this
  30. static const int CADDR_TIME_VERSION = 31402;
  31. // only request blocks from nodes outside this range of versions
  32. static const int NOBLKS_VERSION_START = 32000;
  33. static const int NOBLKS_VERSION_END = 32400;
  34. // BIP 0031, pong message, is enabled for all versions AFTER this one
  35. static const int BIP0031_VERSION = 60000;
  36. #endif