version.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. // ECOin - Copyright (c) - 2014/2022 - GPLv3 - epsylon@riseup.net (https://03c8.net)
  2. #ifndef ECOIN_VERSION_H
  3. #define ECOIN_VERSION_H
  4. #include "clientversion.h"
  5. #include <string>
  6. //
  7. // client versioning
  8. //
  9. static const int CLIENT_VERSION =
  10. 1000000 * CLIENT_VERSION_MAJOR
  11. + 10000 * CLIENT_VERSION_MINOR
  12. + 100 * CLIENT_VERSION_REVISION
  13. + 1 * CLIENT_VERSION_BUILD;
  14. extern const std::string CLIENT_NAME;
  15. extern const std::string CLIENT_BUILD;
  16. extern const std::string CLIENT_DATE;
  17. //
  18. // database format versioning
  19. //
  20. static const int DATABASE_VERSION = 70507;
  21. //
  22. // network protocol versioning
  23. //
  24. static const int PROTOCOL_VERSION = 70009;
  25. // earlier versions not supported and are disconnected
  26. static const int MIN_PROTO_VERSION = 70007;
  27. // nTime field added to CAddress, starting with this version;
  28. // if possible, avoid requesting addresses nodes older than this
  29. static const int CADDR_TIME_VERSION = 70000;
  30. // only request blocks from nodes outside this range of versions
  31. static const int NOBLKS_VERSION_START = 1;
  32. static const int NOBLKS_VERSION_END = 70006;
  33. // BIP 0031, pong message, is enabled for all versions AFTER this one
  34. static const int BIP0031_VERSION = 69999;
  35. // "mempool" command, enhanced "getdata" behavior starts with this version:
  36. static const int MEMPOOL_GD_VERSION = 70000;
  37. #define DISPLAY_VERSION_MAJOR 0
  38. #define DISPLAY_VERSION_MINOR 4
  39. #define DISPLAY_VERSION_REVISION 5
  40. #define DISPLAY_VERSION_BUILD 7
  41. #endif