Skip to content

Commit

Permalink
Merge pull request #3 from coinlqx/2nd-round-renames
Browse files Browse the repository at this point in the history
2nd round renames
  • Loading branch information
Hser2bio authored Nov 13, 2020
2 parents 8adc6aa + 991816e commit 0f8d85a
Show file tree
Hide file tree
Showing 28 changed files with 81 additions and 81 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ AC_PREREQ([2.60])
define(_CLIENT_VERSION_MAJOR, 0)
define(_CLIENT_VERSION_MINOR, 16)
define(_CLIENT_VERSION_REVISION, 0)
define(_CLIENT_VERSION_BUILD, 2)
define(_CLIENT_VERSION_BUILD, 3)
define(_CLIENT_VERSION_IS_RELEASE, true)
define(_COPYRIGHT_YEAR, 2020)
define(_COPYRIGHT_HOLDERS,[The %s developers])
Expand Down
2 changes: 1 addition & 1 deletion src/bls/bls_worker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void CBLSWorker::Start()
int workerCount = std::thread::hardware_concurrency() / 2;
workerCount = std::max(std::min(1, workerCount), 4);
workerPool.resize(workerCount);
RenameThreadPool(workerPool, "dash-bls-worker");
RenameThreadPool(workerPool, "lqx-bls-worker");
}

void CBLSWorker::Stop()
Expand Down
12 changes: 6 additions & 6 deletions src/dash-cli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ std::string HelpMessageCli()
strUsage += HelpMessageOpt("-rpcclienttimeout=<n>", strprintf(_("Timeout in seconds during HTTP requests, or 0 for no timeout. (default: %d)"), DEFAULT_HTTP_CLIENT_TIMEOUT));
strUsage += HelpMessageOpt("-stdinrpcpass", strprintf(_("Read RPC password from standard input as a single line. When combined with -stdin, the first line from standard input is used for the RPC password.")));
strUsage += HelpMessageOpt("-stdin", _("Read extra arguments from standard input, one per line until EOF/Ctrl-D (recommended for sensitive information such as passphrases). When combined with -stdinrpcpass, the first line from standard input is used for the RPC password."));
strUsage += HelpMessageOpt("-rpcwallet=<walletname>", _("Send RPC for non-default wallet on RPC server (needs to exactly match corresponding -wallet option passed to dashd)"));
strUsage += HelpMessageOpt("-rpcwallet=<walletname>", _("Send RPC for non-default wallet on RPC server (needs to exactly match corresponding -wallet option passed to lqxd)"));

return strUsage;
}
Expand Down Expand Up @@ -95,10 +95,10 @@ static int AppInitRPC(int argc, char* argv[])
std::string strUsage = strprintf(_("%s RPC client version"), _(PACKAGE_NAME)) + " " + FormatFullVersion() + "\n";
if (!gArgs.IsArgSet("-version")) {
strUsage += "\n" + _("Usage:") + "\n" +
" dash-cli [options] <command> [params] " + strprintf(_("Send command to %s"), _(PACKAGE_NAME)) + "\n" +
" dash-cli [options] -named <command> [name=value] ... " + strprintf(_("Send command to %s (with named arguments)"), _(PACKAGE_NAME)) + "\n" +
" dash-cli [options] help " + _("List commands") + "\n" +
" dash-cli [options] help <command> " + _("Get help for a command") + "\n";
" lqx-cli [options] <command> [params] " + strprintf(_("Send command to %s"), _(PACKAGE_NAME)) + "\n" +
" lqx-cli [options] -named <command> [name=value] ... " + strprintf(_("Send command to %s (with named arguments)"), _(PACKAGE_NAME)) + "\n" +
" lqx-cli [options] help " + _("List commands") + "\n" +
" lqx-cli [options] help <command> " + _("Get help for a command") + "\n";

strUsage += "\n" + HelpMessageCli();
}
Expand Down Expand Up @@ -458,7 +458,7 @@ int CommandLineRPC(int argc, char *argv[])
strPrint += "error message:\n"+errMsg.get_str();

if (errCode.isNum() && errCode.get_int() == RPC_WALLET_NOT_SPECIFIED) {
strPrint += "\nTry adding \"-rpcwallet=<filename>\" option to dash-cli command line.";
strPrint += "\nTry adding \"-rpcwallet=<filename>\" option to lqx-cli command line.";
}
}
} else {
Expand Down
6 changes: 3 additions & 3 deletions src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -668,10 +668,10 @@ std::string HelpMessage(HelpMessageMode mode)

std::string LicenseInfo()
{
const std::string URL_SOURCE_CODE = "<https://github.com/dashpay/dash>";
const std::string URL_WEBSITE = "<https://dash.org>";
const std::string URL_SOURCE_CODE = "<https://github.com/coinlqx/lqx>";
const std::string URL_WEBSITE = "<https://lqxcoin.com/>";

return CopyrightHolders(_("Copyright (C)"), 2014, COPYRIGHT_YEAR) + "\n" +
return CopyrightHolders(_("Copyright (C)"), 2019, COPYRIGHT_YEAR) + "\n" +
"\n" +
strprintf(_("Please contribute if you find %s useful. "
"Visit %s for further information about the software."),
Expand Down
2 changes: 1 addition & 1 deletion src/llmq/quorums.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ void CQuorum::StartCachePopulatorThread(std::shared_ptr<CQuorum> _this)
// this thread will exit after some time
// when then later some other thread tries to get keys, it will be much faster
_this->cachePopulatorThread = std::thread([_this, t]() {
RenameThread("dash-q-cachepop");
RenameThread("lqx-q-cachepop");
for (size_t i = 0; i < _this->members.size() && !_this->stopCachePopulatorThread && !ShutdownRequested(); i++) {
if (_this->qc.validMembers[i]) {
_this->GetPubKeyShare(i);
Expand Down
2 changes: 1 addition & 1 deletion src/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2003,7 +2003,7 @@ void ThreadMapPort()
}
}

std::string strDesc = "Dash Core " + FormatFullVersion();
std::string strDesc = "Lqx Core " + FormatFullVersion();

try {
while (true) {
Expand Down
2 changes: 1 addition & 1 deletion src/qt/askpassphrasedialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ void AskPassphraseDialog::accept()
break;
}
QMessageBox::StandardButton retval = QMessageBox::question(this, tr("Confirm wallet encryption"),
tr("Warning: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR DASH</b>!") + "<br><br>" + tr("Are you sure you wish to encrypt your wallet?"),
tr("Warning: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR LQXS</b>!") + "<br><br>" + tr("Are you sure you wish to encrypt your wallet?"),
QMessageBox::Yes|QMessageBox::Cancel,
QMessageBox::Cancel);
if(retval == QMessageBox::Yes)
Expand Down
22 changes: 11 additions & 11 deletions src/qt/bitcoinunits.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ QList<BitcoinUnits::Unit> BitcoinUnits::availableUnits()
unitlist.append(LQX);
unitlist.append(mLQX);
unitlist.append(uLQX);
unitlist.append(duffs);
unitlist.append(Chasthons);
return unitlist;
}

Expand All @@ -33,7 +33,7 @@ bool BitcoinUnits::valid(int unit)
case LQX:
case mLQX:
case uLQX:
case duffs:
case Chasthons:
return true;
default:
return false;
Expand All @@ -49,7 +49,7 @@ QString BitcoinUnits::name(int unit)
case LQX: return QString("LQX");
case mLQX: return QString("mLQX");
case uLQX: return QString::fromUtf8("μLQX");
case duffs: return QString("duffs");
case Chasthons: return QString("Chasthons");
default: return QString("???");
}
}
Expand All @@ -60,7 +60,7 @@ QString BitcoinUnits::name(int unit)
case LQX: return QString("tLQX");
case mLQX: return QString("mtLQX");
case uLQX: return QString::fromUtf8("μtLQX");
case duffs: return QString("tduffs");
case Chasthons: return QString("tChasthons");
default: return QString("???");
}
}
Expand All @@ -72,10 +72,10 @@ QString BitcoinUnits::description(int unit)
{
switch(unit)
{
case LQX: return QString("Dash");
case mLQX: return QString("Milli-Dash (1 / 1" THIN_SP_UTF8 "000)");
case uLQX: return QString("Micro-Dash (1 / 1" THIN_SP_UTF8 "000" THIN_SP_UTF8 "000)");
case duffs: return QString("Ten Nano-Dash (1 / 100" THIN_SP_UTF8 "000" THIN_SP_UTF8 "000)");
case LQX: return QString("Lqx");
case mLQX: return QString("Milli-Lqx (1 / 1" THIN_SP_UTF8 "000)");
case uLQX: return QString("Micro-Lqx (1 / 1" THIN_SP_UTF8 "000" THIN_SP_UTF8 "000)");
case Chasthons: return QString("Ten Nano-Dash (1 / 100" THIN_SP_UTF8 "000" THIN_SP_UTF8 "000)");
default: return QString("???");
}
}
Expand All @@ -86,7 +86,7 @@ QString BitcoinUnits::description(int unit)
case LQX: return QString("TestDashs");
case mLQX: return QString("Milli-TestDash (1 / 1" THIN_SP_UTF8 "000)");
case uLQX: return QString("Micro-TestDash (1 / 1" THIN_SP_UTF8 "000" THIN_SP_UTF8 "000)");
case duffs: return QString("Ten Nano-TestDash (1 / 100" THIN_SP_UTF8 "000" THIN_SP_UTF8 "000)");
case Chasthons: return QString("Ten Nano-TestDash (1 / 100" THIN_SP_UTF8 "000" THIN_SP_UTF8 "000)");
default: return QString("???");
}
}
Expand All @@ -99,7 +99,7 @@ qint64 BitcoinUnits::factor(int unit)
case LQX: return 100000000;
case mLQX: return 100000;
case uLQX: return 100;
case duffs: return 1;
case Chasthons: return 1;
default: return 100000000;
}
}
Expand All @@ -111,7 +111,7 @@ int BitcoinUnits::decimals(int unit)
case LQX: return 8;
case mLQX: return 5;
case uLQX: return 2;
case duffs: return 0;
case Chasthons: return 0;
default: return 0;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/qt/bitcoinunits.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class BitcoinUnits: public QAbstractListModel
LQX,
mLQX,
uLQX,
duffs
Chasthons
};

enum SeparatorStyle
Expand Down
4 changes: 2 additions & 2 deletions src/qt/forms/modaloverlay.ui
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
<item>
<widget class="QLabel" name="infoText">
<property name="text">
<string>Recent transactions may not yet be visible, and therefore your wallet's balance might be incorrect. This information will be correct once your wallet has finished synchronizing with the Dash network, as detailed below.</string>
<string>Recent transactions may not yet be visible, and therefore your wallet's balance might be incorrect. This information will be correct once your wallet has finished synchronizing with the Lqx network, as detailed below.</string>
</property>
<property name="textFormat">
<enum>Qt::RichText</enum>
Expand All @@ -124,7 +124,7 @@
<item>
<widget class="QLabel" name="infoTextStrong">
<property name="text">
<string>Attempting to spend Dash that are affected by not-yet-displayed transactions will not be accepted by the network.</string>
<string>Attempting to spend Lqx that are affected by not-yet-displayed transactions will not be accepted by the network.</string>
</property>
<property name="textFormat">
<enum>Qt::RichText</enum>
Expand Down
6 changes: 3 additions & 3 deletions src/qt/forms/optionsdialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@
<item>
<widget class="QCheckBox" name="mapPortUpnp">
<property name="toolTip">
<string>Automatically open the Dash Core client port on the router. This only works when your router supports UPnP and it is enabled.</string>
<string>Automatically open the Lqx Core client port on the router. This only works when your router supports UPnP and it is enabled.</string>
</property>
<property name="text">
<string>Map port using &amp;UPnP</string>
Expand All @@ -453,7 +453,7 @@
<item>
<widget class="QCheckBox" name="connectSocks">
<property name="toolTip">
<string>Connect to the Dash network through a SOCKS5 proxy.</string>
<string>Connect to the Lqx network through a SOCKS5 proxy.</string>
</property>
<property name="text">
<string>&amp;Connect through SOCKS5 proxy (default proxy):</string>
Expand Down Expand Up @@ -610,7 +610,7 @@
<item>
<widget class="QCheckBox" name="connectSocksTor">
<property name="toolTip">
<string>Connect to the Dash network through a separate SOCKS5 proxy for Tor hidden services.</string>
<string>Connect to the Lqx network through a separate SOCKS5 proxy for Tor hidden services.</string>
</property>
<property name="text">
<string>Use separate SOCKS&amp;5 proxy to reach peers via Tor hidden services:</string>
Expand Down
6 changes: 3 additions & 3 deletions src/qt/forms/sendcoinsdialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@
<item>
<widget class="QLabel" name="labelCustomPerKilobyte">
<property name="toolTip">
<string>If the custom fee is set to 1000 duffs and the transaction is only 250 bytes, then &quot;per kilobyte&quot; only pays 250 duffs in fee,&lt;br /&gt;while &quot;at least&quot; pays 1000 duffs. For transactions bigger than a kilobyte both pay by kilobyte.</string>
<string>If the custom fee is set to 1000 Chasthons and the transaction is only 250 bytes, then &quot;per kilobyte&quot; only pays 250 Chasthons in fee,&lt;br /&gt;while &quot;at least&quot; pays 1000 Chasthons. For transactions bigger than a kilobyte both pay by kilobyte.</string>
</property>
<property name="text">
<string>per kilobyte</string>
Expand Down Expand Up @@ -816,7 +816,7 @@
<item>
<widget class="QCheckBox" name="checkBoxMinimumFee">
<property name="toolTip">
<string>Paying only the minimum fee is just fine as long as there is less transaction volume than space in the blocks.&lt;br /&gt;But be aware that this can end up in a never confirming transaction once there is more demand for dash transactions than the network can process.</string>
<string>Paying only the minimum fee is just fine as long as there is less transaction volume than space in the blocks.&lt;br /&gt;But be aware that this can end up in a never confirming transaction once there is more demand for lqx transactions than the network can process.</string>
</property>
<property name="text">
<string/>
Expand All @@ -829,7 +829,7 @@
<bool>true</bool>
</property>
<property name="toolTip">
<string>Paying only the minimum fee is just fine as long as there is less transaction volume than space in the blocks.&lt;br /&gt;But be aware that this can end up in a never confirming transaction once there is more demand for dash transactions than the network can process.</string>
<string>Paying only the minimum fee is just fine as long as there is less transaction volume than space in the blocks.&lt;br /&gt;But be aware that this can end up in a never confirming transaction once there is more demand for lqx transactions than the network can process.</string>
</property>
<property name="text">
<string>(read the tooltip)</string>
Expand Down
2 changes: 1 addition & 1 deletion src/qt/forms/signverifymessagedialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
<item>
<widget class="QValidatedLineEdit" name="addressIn_SM">
<property name="toolTip">
<string>The Dash address to sign the message with</string>
<string>The Lqx address to sign the message with</string>
</property>
</widget>
</item>
Expand Down
12 changes: 6 additions & 6 deletions src/qt/guiutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ void setupAppearance(QWidget* parent, OptionsModel* model)
bool parseBitcoinURI(const QUrl &uri, SendCoinsRecipient *out)
{
// return if URI is not valid or is no dash: URI
if(!uri.isValid() || uri.scheme() != QString("dash"))
if(!uri.isValid() || uri.scheme() != QString("lqx"))
return false;

SendCoinsRecipient rv;
Expand Down Expand Up @@ -428,9 +428,9 @@ bool parseBitcoinURI(QString uri, SendCoinsRecipient *out)
//
// Cannot handle this later, because dash:// will cause Qt to see the part after // as host,
// which will lower-case it (and thus invalidate the address).
if(uri.startsWith("dash://", Qt::CaseInsensitive))
if(uri.startsWith("lqx://", Qt::CaseInsensitive))
{
uri.replace(0, 7, "dash:");
uri.replace(0, 7, "lqx:");
}
QUrl uriInstance(uri);
return parseBitcoinURI(uriInstance, out);
Expand All @@ -444,7 +444,7 @@ bool validateBitcoinURI(const QString& uri)

QString formatBitcoinURI(const SendCoinsRecipient &info)
{
QString ret = QString("dash:%1").arg(info.address);
QString ret = QString("lqx:%1").arg(info.address);
int paramCount = 0;

if (info.amount)
Expand Down Expand Up @@ -961,8 +961,8 @@ fs::path static GetAutostartFilePath()
{
std::string chain = gArgs.GetChainName();
if (chain == CBaseChainParams::MAIN)
return GetAutostartDir() / "dashcore.desktop";
return GetAutostartDir() / strprintf("dashcore-%s.lnk", chain);
return GetAutostartDir() / "lqxcore.desktop";
return GetAutostartDir() / strprintf("lqxcore-%s.lnk", chain);
}

bool GetStartOnSystemStartup()
Expand Down
4 changes: 2 additions & 2 deletions src/qt/openuridialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ OpenURIDialog::OpenURIDialog(QWidget *parent) :
GUIUtil::updateFonts();
GUIUtil::disableMacFocusRect(this);
#if QT_VERSION >= 0x040700
ui->uriEdit->setPlaceholderText("dash:");
ui->uriEdit->setPlaceholderText("lqx:");
#endif
}

Expand Down Expand Up @@ -51,5 +51,5 @@ void OpenURIDialog::on_selectFileButton_clicked()
if(filename.isEmpty())
return;
QUrl fileUri = QUrl::fromLocalFile(filename);
ui->uriEdit->setText("dash:?r=" + QUrl::toPercentEncoding(fileUri.toString()));
ui->uriEdit->setText("lqx:?r=" + QUrl::toPercentEncoding(fileUri.toString()));
}
2 changes: 1 addition & 1 deletion src/qt/optionsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ OptionsDialog::OptionsDialog(QWidget *parent, bool enableWallet) :
}
}
#if QT_VERSION >= 0x040700
ui->thirdPartyTxUrls->setPlaceholderText("https://example.com/tx/%s");
ui->thirdPartyTxUrls->setPlaceholderText("https://explorer.lqxcommunity.org/tx/%s");
#endif

ui->unit->setModel(new BitcoinUnits(this));
Expand Down
Binary file modified src/qt/res/icons/bitcoin.ico
Binary file not shown.
Binary file modified src/qt/res/icons/bitcoin_testnet.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion src/qt/splashscreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ SplashScreen::SplashScreen(Qt::WindowFlags f, const NetworkStyle *networkStyle)
// define text to place
QString titleText = tr(PACKAGE_NAME);
QString versionText = QString(tr("Version %1")).arg(QString::fromStdString(FormatFullVersion()));
QString copyrightText = QString::fromUtf8(CopyrightHolders("\xc2\xA9", 2014, COPYRIGHT_YEAR).c_str());
QString copyrightText = QString::fromUtf8(CopyrightHolders("\xc2\xA9", 2019, COPYRIGHT_YEAR).c_str());
QString titleAddText = networkStyle->getTitleAddText();

QString font = QApplication::font().toString();
Expand Down
2 changes: 1 addition & 1 deletion src/qt/utilitydialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ HelpMessageDialog::HelpMessageDialog(QWidget *parent, HelpMode helpMode) :
} else if (helpMode == cmdline) {
setWindowTitle(tr("Command-line options"));
QString header = tr("Usage:") + "\n" +
" dash-qt [" + tr("command-line options") + "] " + "\n";
" lqx-qt [" + tr("command-line options") + "] " + "\n";
QTextCursor cursor(ui->helpMessage->document());
cursor.insertText(version);
cursor.insertBlock();
Expand Down
Loading

0 comments on commit 0f8d85a

Please sign in to comment.