diff --git a/src/clientversion.cpp b/src/clientversion.cpp index 942eca0..637e7c6 100644 --- a/src/clientversion.cpp +++ b/src/clientversion.cpp @@ -79,7 +79,11 @@ static std::string FormatVersion(int nVersion) std::string FormatFullVersion() { - return CLIENT_BUILD; + // Display a simplified semantic version: omit trailing ".0" and git suffix + // by reusing FormatVersion on the aggregated CLIENT_VERSION. + // This yields e.g. "v1.4.1" when CLIENT_VERSION_BUILD == 0, + // or "v1.4.1.1" if a non-zero build number is used. + return std::string("v") + FormatVersion(CLIENT_VERSION); } /**