Navigation Menu

Skip to content

Commit

Permalink
Update instances of litecoin to worldcoin
Browse files Browse the repository at this point in the history
  • Loading branch information
Faluzure committed Nov 7, 2018
1 parent ab1b5c8 commit e175622
Show file tree
Hide file tree
Showing 78 changed files with 4,143 additions and 4,130 deletions.
2 changes: 1 addition & 1 deletion COPYING
@@ -1,5 +1,5 @@
Copyright (c) 2009-2014 Bitcoin Developers
Copyright (c) 2011-2014 Litecoin Developers
Copyright (c) 2011-2014 Worldcoin Developers

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -3,7 +3,7 @@ Worldcoin integration/staging tree

http://www.worldcoinalliance.net
Copyright (c) 2009-2014 Bitcoin Developers
Copyright (c) 2011-2014 Litecoin Developers
Copyright (c) 2011-2014 Worldcoin Developers
Copyright (c) 2011-2018 Worldcoin Developers

What is Worldcoin?
Expand Down
4 changes: 2 additions & 2 deletions contrib/bitrpc/bitrpc.py
Expand Up @@ -24,7 +24,7 @@

elif cmd == "getaccount":
try:
addr = raw_input("Enter a Litecoin address: ")
addr = raw_input("Enter a Worldcoin address: ")
print access.getaccount(addr)
except:
print "\n---An error occurred---\n"
Expand Down Expand Up @@ -126,7 +126,7 @@

elif cmd == "getreceivedbyaddress":
try:
addr = raw_input("Enter a Litecoin address (optional): ")
addr = raw_input("Enter a Worldcoin address (optional): ")
mc = raw_input("Minimum confirmations (optional): ")
try:
print access.getreceivedbyaddress(addr, mc)
Expand Down
2 changes: 1 addition & 1 deletion contrib/gitian-descriptors/README
@@ -1,4 +1,4 @@
Refer to doc/release-notes.md for directions on obtaining inputs/ and using gitian to build Litecoin.
Refer to doc/release-notes.md for directions on obtaining inputs/ and using gitian to build Worldcoin.
================================================================

Gavin's notes on getting gitian builds up and running using KVM:
Expand Down
2 changes: 1 addition & 1 deletion doc/README.md
Expand Up @@ -2,7 +2,7 @@ Worldcoin 0.8.x BETA
====================

Copyright (c) 2009-2014 Bitcoin Developers
Copyright (c) 2011-2014 Litecoin Developers
Copyright (c) 2011-2014 Worldcoin Developers
Copyright (c) 2011-2018 Worldcoin Developers

Distributed under the MIT/X11 software license, see the accompanying
Expand Down
2 changes: 1 addition & 1 deletion doc/README_windows.txt
@@ -1,7 +1,7 @@
Worldcoin 0.8.x BETA

Copyright (c) 2009-2014 Bitcoin Developers
Copyright (c) 2011-2014 Litecoin Developers
Copyright (c) 2011-2014 Worldcoin Developers
Copyright (c) 2011-2018 Worldcoin Developers
Distributed under the MIT/X11 software license, see the accompanying
file COPYING or http://www.opensource.org/licenses/mit-license.php.
Expand Down
12 changes: 6 additions & 6 deletions doc/release-notes.md
@@ -1,9 +1,9 @@
0.8.7.5 changes
=============
- openssl-1.0.1k or older versions patched for CVE-2014-8275 broke compatibility with Bitcoin and Litecoin.
This update patches Litecoin to maintain compatibility with CVE-2014-8275 patched openssl.
- If you are running v0.8.7.4 as distributed by litecoin.org you do not need to upgrade.
The binaries distributed on litecoin.org contain their own copy of openssl so they are unaffected by this issue.
- openssl-1.0.1k or older versions patched for CVE-2014-8275 broke compatibility with Bitcoin and Worldcoin.
This update patches Worldcoin to maintain compatibility with CVE-2014-8275 patched openssl.
- If you are running v0.8.7.4 as distributed by worldcoin.org you do not need to upgrade.
The binaries distributed on worldcoin.org contain their own copy of openssl so they are unaffected by this issue.

0.8.7.4 changes
=============
Expand Down Expand Up @@ -37,7 +37,7 @@
- Cleanup of SSE2 scrypt detection.

- Minor fixes:
- s/Bitcoin/Litecoin/ in the Coin Control example
- s/Bitcoin/Worldcoin/ in the Coin Control example
- Fix custom build on MacOS X 10.9
- Fix QT5 custom build
- Update Debian build instructions
Expand All @@ -56,7 +56,7 @@

- Peers older than protocol version 70002 are disconnected. 0.8.3.7 is the oldest compatible client.

- Internal miner added back to Litecoin. setgenerate now works, although it is generally a bad idea as it is significantly slower than external CPU miners.
- Internal miner added back to Worldcoin. setgenerate now works, although it is generally a bad idea as it is significantly slower than external CPU miners.

- New RPC commands: getbestblockhash and verifychain

Expand Down
4 changes: 2 additions & 2 deletions doc/release-process.md
Expand Up @@ -96,9 +96,9 @@ repackage gitian builds for release as stand-alone zip/tar/installer exe
export QTDIR=/opt/local/share/qt4 # needed to find translations/qt_*.qm files
T=$(contrib/qt_translations.py $QTDIR/translations src/qt/locale)
python2.7 share/qt/clean_mac_info_plist.py
python2.7 contrib/macdeploy/macdeployqtplus Litecoin-Qt.app -add-qt-tr $T -dmg -fancy contrib/macdeploy/fancy.plist
python2.7 contrib/macdeploy/macdeployqtplus Worldcoin-Qt.app -add-qt-tr $T -dmg -fancy contrib/macdeploy/fancy.plist

Build output expected: Litecoin-Qt.dmg
Build output expected: Worldcoin-Qt.dmg

###Next steps:

Expand Down
4 changes: 2 additions & 2 deletions share/qt/clean_mac_info_plist.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# Jonas Schnelli, 2013
# make sure the Litecoin-Qt.app contains the right plist (including the right version)
# make sure the Worldcoin-Qt.app contains the right plist (including the right version)
# fix made because of serval bugs in Qt mac deployment (https://bugreports.qt-project.org/browse/QTBUG-21267)

from string import Template
Expand All @@ -9,7 +9,7 @@
bitcoinDir = "./";

inFile = bitcoinDir+"/share/qt/Info.plist"
outFile = "Litecoin-Qt.app/Contents/Info.plist"
outFile = "Worldcoin-Qt.app/Contents/Info.plist"
version = "unknown";

fileForGrabbingVersion = bitcoinDir+"bitcoin-qt.pro"
Expand Down
2 changes: 1 addition & 1 deletion src/clientversion.h
Expand Up @@ -16,7 +16,7 @@

// Copyright year (2009-this)
// Todo: update this when changing our copyright comments in the source
#define COPYRIGHT_YEAR 2014
#define COPYRIGHT_YEAR 2018

// Converts the parameter X to a string after macro replacement on X has been performed.
// Don't merge these into one macro!
Expand Down
4 changes: 2 additions & 2 deletions src/init.cpp
Expand Up @@ -1011,10 +1011,10 @@ bool AppInit2(boost::thread_group& threadGroup)
InitWarning(msg);
}
else if (nLoadWalletRet == DB_TOO_NEW)
strErrors << _("Error loading wallet.dat: Wallet requires newer version of Litecoin") << "\n";
strErrors << _("Error loading wallet.dat: Wallet requires newer version of Worldcoin") << "\n";
else if (nLoadWalletRet == DB_NEED_REWRITE)
{
strErrors << _("Wallet needed to be rewritten: restart Litecoin to complete") << "\n";
strErrors << _("Wallet needed to be rewritten: restart Worldcoin to complete") << "\n";
printf("%s", strErrors.str().c_str());
return InitError(strErrors.str());
}
Expand Down
2 changes: 1 addition & 1 deletion src/leveldb/doc/table_format.txt
Expand Up @@ -41,7 +41,7 @@ where the key is a string >= last key in that data block and before
the first key in the successive data block. The value is the
BlockHandle for the data block.

(6) At the very end of the file is a fixed length footer that contains
(6) At the very end of the file is a fixed length barter that contains
the BlockHandle of the metaindex and index blocks as well as a magic number.
metaindex_handle: char[p]; // Block handle for metaindex
index_handle: char[q]; // Block handle for index
Expand Down
35 changes: 24 additions & 11 deletions src/main.cpp
Expand Up @@ -20,7 +20,7 @@ using namespace std;
using namespace boost;

#if defined(NDEBUG)
# error "Litecoin cannot be compiled without assertions."
# error "Worldcoin cannot be compiled without assertions."
#endif

//
Expand Down Expand Up @@ -628,7 +628,7 @@ int64 CTransaction::GetMinFee(unsigned int nBlockSize, bool fAllowFree,
nMinFee = 0;
}

// Litecoin
// Worldcoin
// To limit dust spam, add nBaseFee for each output less than DUST_SOFT_LIMIT
BOOST_FOREACH(const CTxOut& txout, vout)
if (txout.nValue < DUST_SOFT_LIMIT)
Expand Down Expand Up @@ -838,6 +838,19 @@ bool CTransaction::AcceptToMemoryPool(CValidationState &state, bool fCheckInputs
}
}

bool CTxMemPool::addUnchecked(const uint256& hash, CTransaction &tx)
{
// Add to memory pool without checking anything. Don't call this directly,
// call CTxMemPool::accept to properly check the transaction first.
{
mapTx[hash] = tx;
for (unsigned int i = 0; i < tx.vin.size(); i++)
mapNextTx[tx.vin[i].prevout] = CInPoint(&mapTx[hash], i);
nTransactionsUpdated++;
}
return true;
}

bool CTxMemPool::addUnchecked(const uint256& hash, const CTransaction &tx)
{
// Add to memory pool without checking anything. Don't call this directly,
Expand Down Expand Up @@ -4236,7 +4249,7 @@ bool SendMessages(CNode* pto, bool fSendTrickle)

//////////////////////////////////////////////////////////////////////////////
//
// LitecoinMiner
// WorldcoinMiner
//

int static FormatHashBlocks(void* pbuffer, unsigned int len)
Expand Down Expand Up @@ -4649,7 +4662,7 @@ bool CheckWork(CBlock* pblock, CWallet& wallet, CReserveKey& reservekey)
return false;

//// debug print
printf("LitecoinMiner:\n");
printf("WorldcoinMiner:\n");
printf("proof-of-work found \n hash: %s \ntarget: %s\n", hash.GetHex().c_str(), hashTarget.GetHex().c_str());
pblock->print();
printf("generated %s\n", FormatMoney(pblock->vtx[0].vout[0].nValue).c_str());
Expand All @@ -4658,7 +4671,7 @@ bool CheckWork(CBlock* pblock, CWallet& wallet, CReserveKey& reservekey)
{
LOCK(cs_main);
if (pblock->hashPrevBlock != hashBestChain)
return error("LitecoinMiner : generated block is stale");
return error("WorldcoinMiner : generated block is stale");

// Remove key from key pool
reservekey.KeepKey();
Expand All @@ -4672,15 +4685,15 @@ bool CheckWork(CBlock* pblock, CWallet& wallet, CReserveKey& reservekey)
// Process this block the same as if we had received it from another node
CValidationState state;
if (!ProcessBlock(state, NULL, pblock))
return error("LitecoinMiner : ProcessBlock, block not accepted");
return error("WorldcoinMiner : ProcessBlock, block not accepted");
}

return true;
}

void static LitecoinMiner(CWallet *pwallet)
void static WorldcoinMiner(CWallet *pwallet)
{
printf("LitecoinMiner started\n");
printf("WorldcoinMiner started\n");
SetThreadPriority(THREAD_PRIORITY_LOWEST);
RenameThread("worldcoin-miner");

Expand All @@ -4704,7 +4717,7 @@ void static LitecoinMiner(CWallet *pwallet)
CBlock *pblock = &pblocktemplate->block;
IncrementExtraNonce(pblock, pindexPrev, nExtraNonce);

printf("Running LitecoinMiner with %"PRIszu" transactions in block (%u bytes)\n", pblock->vtx.size(),
printf("Running WorldcoinMiner with %"PRIszu" transactions in block (%u bytes)\n", pblock->vtx.size(),
::GetSerializeSize(*pblock, SER_NETWORK, PROTOCOL_VERSION));

//
Expand Down Expand Up @@ -4803,7 +4816,7 @@ void static LitecoinMiner(CWallet *pwallet)
} }
catch (boost::thread_interrupted)
{
printf("LitecoinMiner terminated\n");
printf("WorldcoinMiner terminated\n");
throw;
}
}
Expand All @@ -4828,7 +4841,7 @@ void GenerateBitcoins(bool fGenerate, CWallet* pwallet)

minerThreads = new boost::thread_group();
for (int i = 0; i < nThreads; i++)
minerThreads->create_thread(boost::bind(&LitecoinMiner, pwallet));
minerThreads->create_thread(boost::bind(&WorldcoinMiner, pwallet));
}

// Amount compression:
Expand Down
4 changes: 2 additions & 2 deletions src/qt/aboutdialog.cpp
Expand Up @@ -10,7 +10,7 @@

// Copyright year (2009-this)
// Todo: update this when changing our copyright comments in the source
const int ABOUTDIALOG_COPYRIGHT_YEAR = 2014;
const int ABOUTDIALOG_COPYRIGHT_YEAR = 2018;

AboutDialog::AboutDialog(QWidget *parent) :
QDialog(parent),
Expand All @@ -19,7 +19,7 @@ AboutDialog::AboutDialog(QWidget *parent) :
ui->setupUi(this);

// Set current copyright year
ui->copyrightLabel->setText(tr("Copyright") + QString(" &copy; 2009-%1 ").arg(COPYRIGHT_YEAR) + tr("The Bitcoin developers") + QString("<br>") + tr("Copyright") + QString(" &copy; ") + tr("2011-%1 The Litecoin developers").arg(ABOUTDIALOG_COPYRIGHT_YEAR));
ui->copyrightLabel->setText(tr("Copyright") + QString(" &copy; 2009-%1 ").arg(COPYRIGHT_YEAR) + tr("The Bitcoin developers") + QString("<br>") + tr("Copyright") + QString(" &copy; ") + tr("2011-%1 The Worldcoin developers").arg(ABOUTDIALOG_COPYRIGHT_YEAR));
}

void AboutDialog::setModel(ClientModel *model)
Expand Down
4 changes: 2 additions & 2 deletions src/qt/addressbookpage.cpp
Expand Up @@ -59,12 +59,12 @@ AddressBookPage::AddressBookPage(Mode mode, Tabs tab, QWidget *parent) :
switch(tab)
{
case SendingTab:
ui->labelExplanation->setText(tr("These are your Litecoin addresses for sending payments. Always check the amount and the receiving address before sending coins."));
ui->labelExplanation->setText(tr("These are your Worldcoin addresses for sending payments. Always check the amount and the receiving address before sending coins."));
ui->deleteAddress->setVisible(true);
ui->signMessage->setVisible(false);
break;
case ReceivingTab:
ui->labelExplanation->setText(tr("These are your Litecoin addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you."));
ui->labelExplanation->setText(tr("These are your Worldcoin addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you."));
ui->deleteAddress->setVisible(false);
ui->signMessage->setVisible(true);
break;
Expand Down
2 changes: 1 addition & 1 deletion src/qt/bitcoin.cpp
Expand Up @@ -110,7 +110,7 @@ static std::string Translate(const char* psz)
static void handleRunawayException(std::exception *e)
{
PrintExceptionContinue(e, "Runaway exception");
QMessageBox::critical(0, "Runaway exception", BitcoinGUI::tr("A fatal error occurred. Litecoin can no longer continue safely and will quit.") + QString("\n\n") + QString::fromStdString(strMiscWarning));
QMessageBox::critical(0, "Runaway exception", BitcoinGUI::tr("A fatal error occurred. Worldcoin can no longer continue safely and will quit.") + QString("\n\n") + QString::fromStdString(strMiscWarning));
exit(1);
}

Expand Down
24 changes: 12 additions & 12 deletions src/qt/bitcoingui.cpp
Expand Up @@ -66,7 +66,7 @@ BitcoinGUI::BitcoinGUI(QWidget *parent) :
prevBlocks(0)
{
restoreWindowGeometry();
setWindowTitle(tr("Litecoin") + " - " + tr("Wallet"));
setWindowTitle(tr("Worldcoin") + " - " + tr("Wallet"));
#ifndef Q_OS_MAC
QApplication::setWindowIcon(QIcon(":icons/bitcoin"));
setWindowIcon(QIcon(":icons/bitcoin"));
Expand Down Expand Up @@ -173,7 +173,7 @@ void BitcoinGUI::createActions()
tabGroup->addAction(overviewAction);

sendCoinsAction = new QAction(QIcon(":/icons/send"), tr("&Send"), this);
sendCoinsAction->setStatusTip(tr("Send coins to a Litecoin address"));
sendCoinsAction->setStatusTip(tr("Send coins to a Worldcoin address"));
sendCoinsAction->setToolTip(sendCoinsAction->statusTip());
sendCoinsAction->setCheckable(true);
sendCoinsAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_2));
Expand Down Expand Up @@ -215,14 +215,14 @@ void BitcoinGUI::createActions()
quitAction->setStatusTip(tr("Quit application"));
quitAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q));
quitAction->setMenuRole(QAction::QuitRole);
aboutAction = new QAction(QIcon(":/icons/bitcoin"), tr("&About Litecoin"), this);
aboutAction->setStatusTip(tr("Show information about Litecoin"));
aboutAction = new QAction(QIcon(":/icons/bitcoin"), tr("&About Worldcoin"), this);
aboutAction->setStatusTip(tr("Show information about Worldcoin"));
aboutAction->setMenuRole(QAction::AboutRole);
aboutQtAction = new QAction(QIcon(":/trolltech/qmessagebox/images/qtlogo-64.png"), tr("About &Qt"), this);
aboutQtAction->setStatusTip(tr("Show information about Qt"));
aboutQtAction->setMenuRole(QAction::AboutQtRole);
optionsAction = new QAction(QIcon(":/icons/options"), tr("&Options..."), this);
optionsAction->setStatusTip(tr("Modify configuration options for Litecoin"));
optionsAction->setStatusTip(tr("Modify configuration options for Worldcoin"));
optionsAction->setMenuRole(QAction::PreferencesRole);
toggleHideAction = new QAction(QIcon(":/icons/bitcoin"), tr("&Show / Hide"), this);
toggleHideAction->setStatusTip(tr("Show or hide the main Window"));
Expand All @@ -235,9 +235,9 @@ void BitcoinGUI::createActions()
changePassphraseAction = new QAction(QIcon(":/icons/key"), tr("&Change Passphrase..."), this);
changePassphraseAction->setStatusTip(tr("Change the passphrase used for wallet encryption"));
signMessageAction = new QAction(QIcon(":/icons/edit"), tr("Sign &message..."), this);
signMessageAction->setStatusTip(tr("Sign messages with your Litecoin addresses to prove you own them"));
signMessageAction->setStatusTip(tr("Sign messages with your Worldcoin addresses to prove you own them"));
verifyMessageAction = new QAction(QIcon(":/icons/transaction_0"), tr("&Verify message..."), this);
verifyMessageAction->setStatusTip(tr("Verify messages to ensure they were signed with specified Litecoin addresses"));
verifyMessageAction->setStatusTip(tr("Verify messages to ensure they were signed with specified Worldcoin addresses"));

openRPCConsoleAction = new QAction(QIcon(":/icons/debugwindow"), tr("&Debug window"), this);
openRPCConsoleAction->setStatusTip(tr("Open debugging and diagnostic console"));
Expand Down Expand Up @@ -377,7 +377,7 @@ void BitcoinGUI::createTrayIcon()
#ifndef Q_OS_MAC
trayIcon = new QSystemTrayIcon(this);

trayIcon->setToolTip(tr("Litecoin client"));
trayIcon->setToolTip(tr("Worldcoin client"));
trayIcon->setIcon(QIcon(":/icons/toolbar"));
trayIcon->show();
#endif
Expand Down Expand Up @@ -518,7 +518,7 @@ void BitcoinGUI::setNumConnections(int count)
default: icon = ":/icons/connect_4"; break;
}
labelConnectionsIcon->setPixmap(QIcon(icon).pixmap(STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE));
labelConnectionsIcon->setToolTip(tr("%n active connection(s) to Litecoin network", "", count));
labelConnectionsIcon->setToolTip(tr("%n active connection(s) to Worldcoin network", "", count));
}

void BitcoinGUI::setNumBlocks(int count, int nTotalBlocks)
Expand Down Expand Up @@ -617,7 +617,7 @@ void BitcoinGUI::setNumBlocks(int count, int nTotalBlocks)

void BitcoinGUI::message(const QString &title, const QString &message, unsigned int style, bool *ret)
{
QString strTitle = tr("Litecoin"); // default title
QString strTitle = tr("Worldcoin"); // default title
// Default to information icon
int nMBoxIcon = QMessageBox::Information;
int nNotifyIcon = Notificator::Information;
Expand Down Expand Up @@ -756,7 +756,7 @@ void BitcoinGUI::dropEvent(QDropEvent *event)
if (nValidUrisFound)
walletFrame->gotoSendCoinsPage();
else
message(tr("URI handling"), tr("URI can not be parsed! This can be caused by an invalid Litecoin address or malformed URI parameters."),
message(tr("URI handling"), tr("URI can not be parsed! This can be caused by an invalid Worldcoin address or malformed URI parameters."),
CClientUIInterface::ICON_WARNING);
}

Expand All @@ -779,7 +779,7 @@ void BitcoinGUI::handleURI(QString strURI)
{
// URI has to be valid
if (!walletFrame->handleURI(strURI))
message(tr("URI handling"), tr("URI can not be parsed! This can be caused by an invalid Litecoin address or malformed URI parameters."),
message(tr("URI handling"), tr("URI can not be parsed! This can be caused by an invalid Worldcoin address or malformed URI parameters."),
CClientUIInterface::ICON_WARNING);
}

Expand Down

0 comments on commit e175622

Please sign in to comment.