MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / FormatVersion

Function FormatVersion

src/clientversion.cpp:86–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84const std::string CLIENT_DATE(BUILD_DATE);
85
86static std::string FormatVersion(int nVersion)
87{
88 if (nVersion % 100 == 0)
89 return strprintf("%d.%d.%d", nVersion / 1000000, (nVersion / 10000) % 100, (nVersion / 100) % 100);
90 else
91 return strprintf("%d.%d.%d.%d", nVersion / 1000000, (nVersion / 10000) % 100, (nVersion / 100) % 100, nVersion % 100);
92}
93
94std::vector<std::string> GetPlatformDetails() {
95 std::vector<std::string> platform;

Callers 1

FormatSubVersionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected