Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
Some language adjustments (tokens), add checkpoints and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
turcol committed May 8, 2018
1 parent 22d1b4c commit feb5a32
Show file tree
Hide file tree
Showing 85 changed files with 596 additions and 592 deletions.
2 changes: 1 addition & 1 deletion civx-qt.pro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
TEMPLATE = app
TARGET = civx-qt
VERSION = 1.0.0.3
VERSION = 1.0.0.4
INCLUDEPATH += src src/json src/qt
QT += network
DEFINES += ENABLE_WALLET
Expand Down
4 changes: 4 additions & 0 deletions src/checkpoints.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ namespace Checkpoints
( 10000, uint256("0x45e01c13af7625b7289ed12f687864d485f603c2b5dcccfff26789bcbbc20439") )
( 14000, uint256("0xecd5ae5e58ddde01087a4c7f2033252acc7237a7aa958f4cd0eb016b3c11cd0e") )
( 18000, uint256("0x42ee388a72f85e8a63ed81bdaa4d87040a009cff8471f15e5711ab824faedaa7") ) // v1.0.0.3
( 20000, uint256("0xead9d788c5e0a275d9a8434487248d5b5ed1db14de8ea1627dd70ad1e5fb5f5b") )
( 25000, uint256("0x9e889f90ee0a249a84c2c090117be70de8d53466a5f0bb312fde435ad50080f0") )
( 30000, uint256("0xcd878a41441aca4e2903941c374d0caf17d7080fd1c5e37aca9caab63e82f333") )
( 35500, uint256("0x3196c8456be83bc810ef0f6e2b34a0962435e89d0844b9db8070487d5ec91afa") ) // v1.0.0.4
;

// TestNet has no checkpoints
Expand Down
2 changes: 1 addition & 1 deletion src/clientversion.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#define CLIENT_VERSION_MAJOR 1
#define CLIENT_VERSION_MINOR 0
#define CLIENT_VERSION_REVISION 0
#define CLIENT_VERSION_BUILD 3
#define CLIENT_VERSION_BUILD 4

// Set to true for release, false for prerelease or test build
#define CLIENT_VERSION_IS_RELEASE true
Expand Down
6 changes: 3 additions & 3 deletions src/kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ using namespace std;
int64_t GetWeight(int64_t nIntervalBeginning, int64_t nIntervalEnd)
{
// Kernel hash weight starts from 0 at the min age
// this change increases active coins participating the hash and helps
// this change increases active tokens participating the hash and helps
// to secure the network when proof-of-stake difficulty is low

return nIntervalEnd - nIntervalBeginning - nStakeMinAge;
Expand Down Expand Up @@ -323,7 +323,7 @@ static bool CheckStakeKernelHashV1(unsigned int nBits, const CBlock& blockFrom,
// kernel (input 0) must meet the formula
// hash(nStakeModifier + txPrev.block.nTime + txPrev.nTime + txPrev.vout.hash + txPrev.vout.n + nTime) < bnTarget * nWeight
// this ensures that the chance of getting a coinstake is proportional to the
// amount of coins one owns.
// amount of tokens one owns.
// The reason this hash is chosen is the following:
// nStakeModifier: scrambles computation to make it very difficult to precompute
// future proof-of-stake
Expand Down Expand Up @@ -487,7 +487,7 @@ bool CheckKernel(CBlockIndex* pindexPrev, unsigned int nBits, int64_t nTime, con
else
{
if (block.GetBlockTime() + nStakeMinAge > nTime)
return false; // only count coins meeting min age requirement
return false; // only count tokens meeting min age requirement
}

if (pBlockTime)
Expand Down
6 changes: 3 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1816,7 +1816,7 @@ bool CBlock::SetBestChain(CTxDB& txdb, CBlockIndex* pindexNew)
}

// ppcoin: total coin age spent in transaction, in the unit of coin-days.
// Only those coins meeting minimum age requirement counts. As those
// Only those tokens meeting minimum age requirement counts. As those
// transactions not in main chain are not currently indexed so we
// might not find out about their coin age. Older transactions are
// guaranteed to be in main chain by sync-checkpoint. This rule is
Expand Down Expand Up @@ -1846,7 +1846,7 @@ bool CTransaction::GetCoinAge(CTxDB& txdb, const CBlockIndex* pindexPrev, uint64
if (IsConfirmedInNPrevBlocks(txindex, pindexPrev, nStakeMinConfirmations - 1, nSpendDepth))
{
LogPrint("coinage", "coin age skip nSpendDepth=%d\n", nSpendDepth + 1);
continue; // only count coins meeting min confirmations requirement
continue; // only count tokens meeting min confirmations requirement
}
}
else
Expand All @@ -1856,7 +1856,7 @@ bool CTransaction::GetCoinAge(CTxDB& txdb, const CBlockIndex* pindexPrev, uint64
if (!block.ReadFromDisk(txindex.pos.nFile, txindex.pos.nBlockPos, false))
return false; // unable to read block of previous transaction
if (block.GetBlockTime() + nStakeMinAge > nTime)
continue; // only count coins meeting min age requirement
continue; // only count tokens meeting min age requirement
}

int64_t nValueIn = txPrev.vout[txin.prevout.n].nValue;
Expand Down
2 changes: 1 addition & 1 deletion src/qt/addressbookpage.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public slots:
private slots:
/** Delete currently selected address entry */
void on_deleteButton_clicked();
/** Create a new address for receiving coins and / or add a new address book entry */
/** Create a new address for receiving tokens and / or add a new address book entry */
void on_newAddressButton_clicked();
/** Copy address of currently selected address entry to clipboard */
void on_copyToClipboard_clicked();
Expand Down
2 changes: 1 addition & 1 deletion src/qt/askpassphrasedialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ void AskPassphraseDialog::accept()
"<qt>" +
tr("CivX will close now to finish the encryption process. "
"Remember that encrypting your wallet cannot fully protect "
"your coins from being stolen by malware infecting your computer.") +
"your tokens from being stolen by malware infecting your computer.") +
"<br><br><b>" +
tr("IMPORTANT: Any previous backups you have made of your wallet file "
"should be replaced with the newly generated, encrypted wallet file. "
Expand Down
10 changes: 5 additions & 5 deletions src/qt/bitcoingui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ BitcoinGUI::BitcoinGUI(QWidget *parent):

// Clicking on "Verify Message" in the address book sends you to the verify message tab
connect(addressBookPage, SIGNAL(verifyMessage(QString)), this, SLOT(gotoVerifyMessageTab(QString)));
// Clicking on "Sign Message" in the receive coins page sends you to the sign message tab
// Clicking on "Sign Message" in the receive tokens page sends you to the sign message tab
connect(receiveCoinsPage, SIGNAL(signMessage(QString)), this, SLOT(gotoSignMessageTab(QString)));

gotoOverviewPage();
Expand Down Expand Up @@ -242,7 +242,7 @@ void BitcoinGUI::createActions()
tabGroup->addAction(receiveCoinsAction);

sendCoinsAction = new QAction(QIcon(":/icons/send"), tr("&Send"), this);
sendCoinsAction->setToolTip(tr("Send coins to a CivX address"));
sendCoinsAction->setToolTip(tr("Send tokens to a CivX address"));
sendCoinsAction->setCheckable(true);
sendCoinsAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_3));
tabGroup->addAction(sendCoinsAction);
Expand Down Expand Up @@ -719,9 +719,9 @@ void BitcoinGUI::askFee(qint64 nFeeRequired, bool *payFee)
if (!clientModel || !clientModel->getOptionsModel())
return;

QString strMessage = tr("This transaction is over the size limit. You can still send it for a fee of %1, "
"which goes to the nodes that process your transaction and helps to support the network. "
"Do you want to pay the fee?").arg(BitcoinUnits::formatWithUnit(clientModel->getOptionsModel()->getDisplayUnit(), nFeeRequired));
QString strMessage = tr("The transaction fee is %1, which is given to the nodes that process and validate your transaction. "
"This supports and secures the network. "
"Click Yes to accept this fee").arg(BitcoinUnits::formatWithUnit(clientModel->getOptionsModel()->getDisplayUnit(), nFeeRequired));
QMessageBox::StandardButton retval = QMessageBox::question(
this, tr("Confirm transaction fee"), strMessage,
QMessageBox::Yes|QMessageBox::Cancel, QMessageBox::Yes);
Expand Down
4 changes: 2 additions & 2 deletions src/qt/bitcoingui.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ private slots:
void gotoHistoryPage();
/** Switch to address book page */
void gotoAddressBookPage();
/** Switch to receive coins page */
/** Switch to receive tokens page */
void gotoReceiveCoinsPage();
/** Switch to send coins page */
/** Switch to send tokens page */
void gotoSendCoinsPage();

/** Show Sign/Verify Message dialog and switch to sign message tab */
Expand Down
4 changes: 2 additions & 2 deletions src/qt/bitcoinstrings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,9 @@ QT_TRANSLATE_NOOP("bitcoin-core", ""
QT_TRANSLATE_NOOP("bitcoin-core", "Error: Transaction creation failed!"),
QT_TRANSLATE_NOOP("bitcoin-core", "Sending..."),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"Error: The transaction was rejected! This might happen if some of the coins "
"Error: The transaction was rejected! This might happen if some of the tokens "
"in your wallet were already spent, such as if you used a copy of wallet.dat "
"and coins were spent in the copy but not marked as spent here."),
"and tokens were spent in the copy but not marked as spent here."),
QT_TRANSLATE_NOOP("bitcoin-core", "Invalid amount"),
QT_TRANSLATE_NOOP("bitcoin-core", "Insufficient funds"),
QT_TRANSLATE_NOOP("bitcoin-core", "Error"),
Expand Down
2 changes: 1 addition & 1 deletion src/qt/coincontroldialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ void CoinControlDialog::updateView()
// vout index
itemOutput->setText(COLUMN_VOUT_INDEX, QString::number(out.i));

// disable locked coins
// disable locked tokens
/*if (model->isLockedCoin(txhash, out.i))
{
COutPoint outpt(txhash, out.i);
Expand Down
4 changes: 2 additions & 2 deletions src/qt/forms/overviewpage.ui
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
<cursorShape>IBeamCursor</cursorShape>
</property>
<property name="toolTip">
<string>Total of coins that was staked, and do not yet count toward the current balance</string>
<string>Total of tokens that was staked, and do not yet count toward the current balance</string>
</property>
<property name="text">
<string notr="true">0 CIVX</string>
Expand Down Expand Up @@ -195,7 +195,7 @@
<item row="3" column="0">
<widget class="QLabel" name="labelImmatureText">
<property name="text">
<string>Immature:</string>
<string>Maturing:</string>
</property>
</widget>
</item>
Expand Down
16 changes: 8 additions & 8 deletions src/qt/locale/bitcoin_af_ZA.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ This product includes software developed by the OpenSSL Project for use in the O
</message>
<message>
<location line="+82"/>
<source>CivX will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your coins from being stolen by malware infecting your computer.</source>
<source>CivX will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your tokens from being stolen by malware infecting your computer.</source>
<translation type="unfinished"/>
</message>
<message>
Expand Down Expand Up @@ -390,7 +390,7 @@ This product includes software developed by the OpenSSL Project for use in the O
</message>
<message>
<location line="-55"/>
<source>Send coins to a CivX address</source>
<source>Send tokens to a CivX address</source>
<translation type="unfinished"/>
</message>
<message>
Expand Down Expand Up @@ -707,7 +707,7 @@ Address: %4
</message>
<message>
<location line="+69"/>
<source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source>
<source>The transaction fee is %1, which is given to the nodes that process and validate your transaction. This supports and secures the network. Click Yes to accept this fee</source>
<translation type="unfinished"/>
</message>
<message>
Expand Down Expand Up @@ -1335,7 +1335,7 @@ This label turns red, if the priority is smaller than &quot;medium&quot;.
</message>
<message>
<location line="+80"/>
<source>Immature:</source>
<source>Maturing:</source>
<translation type="unfinished"/>
</message>
<message>
Expand Down Expand Up @@ -1365,7 +1365,7 @@ This label turns red, if the priority is smaller than &quot;medium&quot;.
</message>
<message>
<location line="-32"/>
<source>Total of coins that was staked, and do not yet count toward the current balance</source>
<source>Total of tokens that was staked, and do not yet count toward the current balance</source>
<translation type="unfinished"/>
</message>
<message>
Expand Down Expand Up @@ -1868,7 +1868,7 @@ This label turns red, if the priority is smaller than &quot;medium&quot;.
</message>
<message>
<location line="+5"/>
<source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<source>Error: The transaction was rejected. This might happen if some of the tokens in your wallet were already spent, such as if you used a copy of wallet.dat and tokens were spent in the copy but not marked as spent here.</source>
<translation type="unfinished"/>
</message>
<message>
Expand Down Expand Up @@ -2269,7 +2269,7 @@ This label turns red, if the priority is smaller than &quot;medium&quot;.
</message>
<message>
<location line="+3"/>
<source>Generated coins must mature 51 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to &quot;not accepted&quot; and it won&apos;t be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source>
<source>Generated tokens must mature 51 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to &quot;not accepted&quot; and it won&apos;t be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source>
<translation type="unfinished"/>
</message>
<message>
Expand Down Expand Up @@ -2945,7 +2945,7 @@ for example: alertnotify=echo %%s | mail -s &quot;CivX Alert&quot; admin@foo.com
</message>
<message>
<location line="+2"/>
<source>Error: The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<source>Error: The transaction was rejected! This might happen if some of the tokens in your wallet were already spent, such as if you used a copy of wallet.dat and tokens were spent in the copy but not marked as spent here.</source>
<translation type="unfinished"/>
</message>
<message>
Expand Down
16 changes: 8 additions & 8 deletions src/qt/locale/bitcoin_ar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ This product includes software developed by the OpenSSL Project for use in the O
</message>
<message>
<location line="+82"/>
<source>CivX will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your coins from being stolen by malware infecting your computer.</source>
<source>CivX will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your tokens from being stolen by malware infecting your computer.</source>
<translation>بلاك كوين</translation>
</message>
<message>
Expand Down Expand Up @@ -392,7 +392,7 @@ This product includes software developed by the OpenSSL Project for use in the O
</message>
<message>
<location line="-55"/>
<source>Send coins to a CivX address</source>
<source>Send tokens to a CivX address</source>
<translation>ارسال البلاك كوين الي عنوان اخر</translation>
</message>
<message>
Expand Down Expand Up @@ -709,7 +709,7 @@ Address: %4
</message>
<message>
<location line="+69"/>
<source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source>
<source>The transaction fee is %1, which is given to the nodes that process and validate your transaction. This supports and secures the network. Click Yes to accept this fee</source>
<translation type="unfinished"/>
</message>
<message>
Expand Down Expand Up @@ -1338,7 +1338,7 @@ This label turns red, if the priority is smaller than &quot;medium&quot;.
</message>
<message>
<location line="+80"/>
<source>Immature:</source>
<source>Maturing:</source>
<translation>غير ناضجة</translation>
</message>
<message>
Expand Down Expand Up @@ -1368,7 +1368,7 @@ This label turns red, if the priority is smaller than &quot;medium&quot;.
</message>
<message>
<location line="-32"/>
<source>Total of coins that was staked, and do not yet count toward the current balance</source>
<source>Total of tokens that was staked, and do not yet count toward the current balance</source>
<translation type="unfinished"/>
</message>
<message>
Expand Down Expand Up @@ -1871,7 +1871,7 @@ This label turns red, if the priority is smaller than &quot;medium&quot;.
</message>
<message>
<location line="+5"/>
<source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<source>Error: The transaction was rejected. This might happen if some of the tokens in your wallet were already spent, such as if you used a copy of wallet.dat and tokens were spent in the copy but not marked as spent here.</source>
<translation type="unfinished"/>
</message>
<message>
Expand Down Expand Up @@ -2272,7 +2272,7 @@ This label turns red, if the priority is smaller than &quot;medium&quot;.
</message>
<message>
<location line="+3"/>
<source>Generated coins must mature 51 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to &quot;not accepted&quot; and it won&apos;t be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source>
<source>Generated tokens must mature 51 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to &quot;not accepted&quot; and it won&apos;t be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source>
<translation type="unfinished"/>
</message>
<message>
Expand Down Expand Up @@ -2948,7 +2948,7 @@ for example: alertnotify=echo %%s | mail -s &quot;CivX Alert&quot; admin@foo.com
</message>
<message>
<location line="+2"/>
<source>Error: The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<source>Error: The transaction was rejected! This might happen if some of the tokens in your wallet were already spent, such as if you used a copy of wallet.dat and tokens were spent in the copy but not marked as spent here.</source>
<translation type="unfinished"/>
</message>
<message>
Expand Down
Loading

0 comments on commit feb5a32

Please sign in to comment.