Skip to content

Commit d6a001f

Browse files
authored
Merge pull request #192 from AkioNak/daemon-version-option
elementsd -version' abort with std::runtime_error.
2 parents 0b1ceaf + 8157aa8 commit d6a001f

4 files changed

Lines changed: 9 additions & 7 deletions

File tree

configure.ac

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ define(_CLIENT_VERSION_REVISION, 1)
66
define(_CLIENT_VERSION_BUILD, 0)
77
define(_CLIENT_VERSION_IS_RELEASE, true)
88
define(_COPYRIGHT_YEAR, 2017)
9+
define(_COPYRIGHT_HOLDERS,[The %s developers])
10+
define(_COPYRIGHT_HOLDERS_SUBSTITUTION,[[Elements Core]])
911
AC_INIT([Elements Core],[_CLIENT_VERSION_MAJOR._CLIENT_VERSION_MINOR._CLIENT_VERSION_REVISION._CLIENT_VERSION_BUILD],[https://github.com/ElementsProject/elements/issues],[elements])
1012
AC_CONFIG_SRCDIR([src/validation.cpp])
1113
AC_CONFIG_HEADERS([src/config/bitcoin-config.h])

src/init.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -521,10 +521,10 @@ std::string HelpMessage(HelpMessageMode mode)
521521

522522
std::string LicenseInfo()
523523
{
524-
const std::string URL_SOURCE_CODE = "<https://github.com/bitcoin/bitcoin>";
525-
const std::string URL_WEBSITE = "<https://bitcoincore.org>";
524+
const std::string URL_SOURCE_CODE = "<https://github.com/ElementsProject/elements>";
525+
const std::string URL_WEBSITE = "<https://www.elementsproject.org>";
526526

527-
return CopyrightHolders(strprintf(_("Copyright (C) %i-%i"), 2009, COPYRIGHT_YEAR) + " ") + "\n" +
527+
return CopyrightHolders(strprintf(_("Copyright (C) %i-%i"), 2015, COPYRIGHT_YEAR) + " ") + "\n" +
528528
"\n" +
529529
strprintf(_("Please contribute if you find %s useful. "
530530
"Visit %s for further information about the software."),

src/qt/splashscreen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ SplashScreen::SplashScreen(Qt::WindowFlags f, const NetworkStyle *networkStyle)
4444
// define text to place
4545
QString titleText = tr(PACKAGE_NAME);
4646
QString versionText = QString("Version %1").arg(QString::fromStdString(FormatFullVersion()));
47-
QString copyrightText = QString::fromUtf8(CopyrightHolders(strprintf("\xc2\xA9 %u-%u ", 2009, COPYRIGHT_YEAR)).c_str());
47+
QString copyrightText = QString::fromUtf8(CopyrightHolders(strprintf("\xc2\xA9 %u-%u ", 2015, COPYRIGHT_YEAR)).c_str());
4848
QString titleAddText = networkStyle->getTitleAddText();
4949

5050
QString font = QApplication::font().toString();

src/util.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -913,9 +913,9 @@ std::string CopyrightHolders(const std::string& strPrefix)
913913
{
914914
std::string strCopyrightHolders = strPrefix + strprintf(_(COPYRIGHT_HOLDERS), _(COPYRIGHT_HOLDERS_SUBSTITUTION));
915915

916-
// Check for untranslated substitution to make sure Bitcoin Core copyright is not removed by accident
917-
if (strprintf(COPYRIGHT_HOLDERS, COPYRIGHT_HOLDERS_SUBSTITUTION).find("Bitcoin Core") == std::string::npos) {
918-
strCopyrightHolders += "\n" + strPrefix + "The Bitcoin Core developers";
916+
// Check for untranslated substitution to make sure Elements Core copyright is not removed by accident
917+
if (strprintf(COPYRIGHT_HOLDERS, COPYRIGHT_HOLDERS_SUBSTITUTION).find("Elements Core") == std::string::npos) {
918+
strCopyrightHolders += "\n" + strPrefix + "The Elements Core developers";
919919
}
920920
return strCopyrightHolders;
921921
}

0 commit comments

Comments
 (0)