Skip to content

Commit

Permalink
bitcoin to peercoin changes
Browse files Browse the repository at this point in the history
  • Loading branch information
backpacker69 committed Feb 14, 2019
1 parent 773d02a commit 2922e6d
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/noui.cpp
Expand Up @@ -51,7 +51,7 @@ static void noui_InitMessage(const std::string& message)

void noui_connect()
{
// Connect bitcoind signal handlers
// Connect peercoind signal handlers
uiInterface.ThreadSafeMessageBox.connect(noui_ThreadSafeMessageBox);
uiInterface.ThreadSafeQuestion.connect(noui_ThreadSafeQuestion);
uiInterface.InitMessage.connect(noui_InitMessage);
Expand Down
12 changes: 6 additions & 6 deletions src/qt/guiutil.cpp
Expand Up @@ -127,7 +127,7 @@ void setupAddressWidget(QValidatedLineEdit *widget, QWidget *parent)
#if QT_VERSION >= 0x040700
// We don't want translators to use own addresses in translations
// and this is the only place, where this address is supplied.
widget->setPlaceholderText(QObject::tr("Enter a Bitcoin address (e.g. %1)").arg(
widget->setPlaceholderText(QObject::tr("Enter a Peercoin address (e.g. %1)").arg(
QString::fromStdString(DummyAddress(Params()))));
#endif
widget->setValidator(new BitcoinAddressEntryValidator(parent));
Expand Down Expand Up @@ -611,10 +611,10 @@ fs::path static StartupShortcutPath()
{
std::string chain = ChainNameFromCommandLine();
if (chain == CBaseChainParams::MAIN)
return GetSpecialFolderPath(CSIDL_STARTUP) / "Bitcoin.lnk";
return GetSpecialFolderPath(CSIDL_STARTUP) / "Peercoin.lnk";
if (chain == CBaseChainParams::TESTNET) // Remove this special case when CBaseChainParams::TESTNET = "testnet4"
return GetSpecialFolderPath(CSIDL_STARTUP) / "Bitcoin (testnet).lnk";
return GetSpecialFolderPath(CSIDL_STARTUP) / strprintf("Bitcoin (%s).lnk", chain);
return GetSpecialFolderPath(CSIDL_STARTUP) / "Peercoin (testnet).lnk";
return GetSpecialFolderPath(CSIDL_STARTUP) / strprintf("Peercoin (%s).lnk", chain);
}

bool GetStartOnSystemStartup()
Expand Down Expand Up @@ -709,8 +709,8 @@ fs::path static GetAutostartFilePath()
{
std::string chain = ChainNameFromCommandLine();
if (chain == CBaseChainParams::MAIN)
return GetAutostartDir() / "bitcoin.desktop";
return GetAutostartDir() / strprintf("bitcoin-%s.lnk", chain);
return GetAutostartDir() / "peercoin.desktop";
return GetAutostartDir() / strprintf("peercoin-%s.lnk", chain);
}

bool GetStartOnSystemStartup()
Expand Down
2 changes: 1 addition & 1 deletion src/qt/guiutil.h
Expand Up @@ -29,7 +29,7 @@ class QUrl;
class QWidget;
QT_END_NAMESPACE

/** Utility functions used by the Bitcoin Qt UI.
/** Utility functions used by the Peercoin Qt UI.
*/
namespace GUIUtil
{
Expand Down
10 changes: 5 additions & 5 deletions src/qt/paymentserver.cpp
Expand Up @@ -48,14 +48,14 @@
#endif

const int BITCOIN_IPC_CONNECT_TIMEOUT = 1000; // milliseconds
const QString BITCOIN_IPC_PREFIX("bitcoin:");
const QString BITCOIN_IPC_PREFIX("peercoin:");
// BIP70 payment protocol messages
const char* BIP70_MESSAGE_PAYMENTACK = "PaymentACK";
const char* BIP70_MESSAGE_PAYMENTREQUEST = "PaymentRequest";
// BIP71 payment protocol media types
const char* BIP71_MIMETYPE_PAYMENT = "application/bitcoin-payment";
const char* BIP71_MIMETYPE_PAYMENTACK = "application/bitcoin-paymentack";
const char* BIP71_MIMETYPE_PAYMENTREQUEST = "application/bitcoin-paymentrequest";
const char* BIP71_MIMETYPE_PAYMENT = "application/peercoin-payment";
const char* BIP71_MIMETYPE_PAYMENTACK = "application/peercoin-paymentack";
const char* BIP71_MIMETYPE_PAYMENTREQUEST = "application/peercoin-paymentrequest";

struct X509StoreDeleter {
void operator()(X509_STORE* b) {
Expand All @@ -79,7 +79,7 @@ namespace // Anon namespace
//
static QString ipcServerName()
{
QString name("BitcoinQt");
QString name("PeercoinQt");

// Append a simple hash of the datadir
// Note that GetDataDir(true) returns a different path
Expand Down
2 changes: 1 addition & 1 deletion src/qt/rpcconsole.h
Expand Up @@ -27,7 +27,7 @@ class QMenu;
class QItemSelection;
QT_END_NAMESPACE

/** Local Bitcoin RPC console. */
/** Local Peercoin RPC console. */
class RPCConsole: public QWidget
{
Q_OBJECT
Expand Down

0 comments on commit 2922e6d

Please sign in to comment.