When/if the copyright line does not mention Bitcoin Core developers, add a second line to copyrights in -version, About dialog, and splash screen
This commit is contained in:
14
src/util.cpp
14
src/util.cpp
@@ -834,10 +834,14 @@ int GetNumCores()
|
||||
#endif
|
||||
}
|
||||
|
||||
std::string CopyrightHolders()
|
||||
std::string CopyrightHolders(const std::string& strPrefix)
|
||||
{
|
||||
std::string strCopyrightHolders = _(COPYRIGHT_HOLDERS);
|
||||
if (strCopyrightHolders.find("%s") == strCopyrightHolders.npos)
|
||||
return strCopyrightHolders;
|
||||
return strprintf(strCopyrightHolders, _(COPYRIGHT_HOLDERS_SUBSTITUTION));
|
||||
std::string strCopyrightHolders = strPrefix + _(COPYRIGHT_HOLDERS);
|
||||
if (strCopyrightHolders.find("%s") != strCopyrightHolders.npos) {
|
||||
strCopyrightHolders = strprintf(strCopyrightHolders, _(COPYRIGHT_HOLDERS_SUBSTITUTION));
|
||||
}
|
||||
if (strCopyrightHolders.find("Bitcoin Core developers") == strCopyrightHolders.npos) {
|
||||
strCopyrightHolders += "\n" + strPrefix + "The Bitcoin Core developers";
|
||||
}
|
||||
return strCopyrightHolders;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user