FormatSubVersion

Formats a BIP14-style user agent subversion string.

Synopsis

Declared in <clientversion.h>

std::string
FormatSubVersion(
    std::string const& name,
    int nClientVersion,
    std::vector<std::string> const& comments);

Return Value

The formatted subversion string.

Parameters

NameDescription
nameThe client name to embed in the user agent.
nClientVersionThe numeric client version to embed.
commentsOptional comments appended in parentheses.