/**
 * The default Bitcoin XT subversion field according to BIP 14 spec
 */
std::string XTSubVersion()
{
    std::vector<std::string> comments = Opt().UAComment();

    if (Opt().IsStealthMode())
        return FormatSubVersion("Satoshi", CLIENT_VERSION, comments, "");

    if (!Opt().HidePlatform()) {
        std::vector<std::string> p = GetPlatformDetails();
        comments.insert(comments.end(), p.begin(), p.end());
    }

    return FormatSubVersion(CLIENT_NAME, CLIENT_VERSION, comments, CLIENT_VERSION_XT_SUBVER);
}
Exemple #2
0
QString ClientModel::formatSubVersion() const
{
    /* XXX Really we should use strSubVersion XXX */
    std::string _subversion = FormatSubVersion(CLIENT_NAME, CLIENT_VERSION,
	std::vector<string>());
    return QString::fromStdString(_subversion);
}