diff --git a/doc/swifttx.md b/doc/swifttx.md index 9a3e1bf6f3b1..693a57120530 100644 --- a/doc/swifttx.md +++ b/doc/swifttx.md @@ -1,6 +1,6 @@ -##SwiftTX Technical Information +##SwiftX Technical Information -SwiftTX has been integrated into the Core Daemon in two ways: +SwiftX has been integrated into the Core Daemon in two ways: * "push" notifications (ZMQ and `-swifttxnotify` cmd-line/config option); * RPC commands. @@ -8,8 +8,8 @@ SwiftTX has been integrated into the Core Daemon in two ways: When a "Transaction Lock" occurs the hash of the related transaction is broadcasted through ZMQ using both the `zmqpubrawtxlock` and `zmqpubhashtxlock` channels. -* `zmqpubrawtxlock`: publishes the raw transaction when locked via SwiftTX -* `zmqpubhashtxlock`: publishes the transaction hash when locked via SwiftTX +* `zmqpubrawtxlock`: publishes the raw transaction when locked via SwiftX +* `zmqpubhashtxlock`: publishes the transaction hash when locked via SwiftX This mechanism has been integrated into Bitcore-Node-PIVX which allows for notification to be broadcast through Insight API in one of two ways: * WebSocket: [https://github.com/PIVX-Project/insight-api-pivx#web-socket-api](https://github.com/PIVX-Project/insight-api-pivx#web-socket-api) @@ -17,7 +17,7 @@ This mechanism has been integrated into Bitcore-Node-PIVX which allows for notif ####Command line option -When a wallet SwiftTX transaction is successfully locked a shell command provided in this option is executed (`%s` in `` is replaced by TxID): +When a wallet SwiftX transaction is successfully locked a shell command provided in this option is executed (`%s` in `` is replaced by TxID): ``` -swifttxnotify= @@ -39,20 +39,20 @@ This value can be overridden by passing the following argument to the PIVX Core -swifttxdepth= ``` -The key thing to understand is that this value indicates the number of "confirmations" a successful Transaction Lock represents. When Wallet RPC commands are performed (such as `listsinceblock`) this attribute is taken into account when returning information about the transaction. The value in `confirmations` field you see through RPC is showing the number of `"Blockchain Confirmations" + "SwiftTX Depth"` (assuming the funds were sent via SwiftTX). +The key thing to understand is that this value indicates the number of "confirmations" a successful Transaction Lock represents. When Wallet RPC commands are performed (such as `listsinceblock`) this attribute is taken into account when returning information about the transaction. The value in `confirmations` field you see through RPC is showing the number of `"Blockchain Confirmations" + "SwiftX Depth"` (assuming the funds were sent via SwiftX). -There is also a field named `bcconfirmations`. The value in this field represents the total number of `"Blockchain Confirmations"` for a given transaction without taking into account whether it was SwiftTX or not. +There is also a field named `bcconfirmations`. The value in this field represents the total number of `"Blockchain Confirmations"` for a given transaction without taking into account whether it was SwiftX or not. **Examples** -* SwiftTX transaction just occurred: +* SwiftX transaction just occurred: * confirmations: 5 * bcconfirmations: 0 -* SwiftTX transaction received one confirmation from blockchain: +* SwiftX transaction received one confirmation from blockchain: * confirmations: 6 * bcconfirmations: 1 -* non-SwiftTX transaction just occurred: +* non-SwiftX transaction just occurred: * confirmations: 0 * bcconfirmations: 0 -* non-SwiftTX transaction received one confirmation from blockchain: +* non-SwiftX transaction received one confirmation from blockchain: * confirmations: 1 * bcconfirmations: 1 diff --git a/src/init.cpp b/src/init.cpp index bc0a786d39ed..fd51ff2c6f1d 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -406,10 +406,10 @@ std::string HelpMessage(HelpMessageMode mode) strUsage += HelpMessageGroup(_("ZeroMQ notification options:")); strUsage += HelpMessageOpt("-zmqpubhashblock=
", _("Enable publish hash block in
")); strUsage += HelpMessageOpt("-zmqpubhashtx=
", _("Enable publish hash transaction in
")); - strUsage += HelpMessageOpt("-zmqpubhashtxlock=
", _("Enable publish hash transaction (locked via SwiftTX) in
")); + strUsage += HelpMessageOpt("-zmqpubhashtxlock=
", _("Enable publish hash transaction (locked via SwiftX) in
")); strUsage += HelpMessageOpt("-zmqpubrawblock=
", _("Enable publish raw block in
")); strUsage += HelpMessageOpt("-zmqpubrawtx=
", _("Enable publish raw transaction in
")); - strUsage += HelpMessageOpt("-zmqpubrawtxlock=
", _("Enable publish raw transaction (locked via SwiftTX) in
")); + strUsage += HelpMessageOpt("-zmqpubrawtxlock=
", _("Enable publish raw transaction (locked via SwiftX) in
")); #endif strUsage += HelpMessageGroup(_("Debugging/Testing options:")); @@ -427,7 +427,7 @@ std::string HelpMessage(HelpMessageMode mode) strUsage += HelpMessageOpt("-stopafterblockimport", strprintf(_("Stop running after importing blocks from disk (default: %u)"), 0)); strUsage += HelpMessageOpt("-sporkkey=", _("Enable spork administration functionality with the appropriate private key.")); } - string debugCategories = "addrman, alert, bench, coindb, db, lock, rand, rpc, selectcoins, tor, mempool, net, proxy, pivx, (obfuscation, swifttx, masternode, mnpayments, mnbudget, zero)"; // Don't translate these and qt below + string debugCategories = "addrman, alert, bench, coindb, db, lock, rand, rpc, selectcoins, tor, mempool, net, proxy, pivx, (obfuscation, swiftx, masternode, mnpayments, mnbudget, zero)"; // Don't translate these and qt below if (mode == HMM_BITCOIN_QT) debugCategories += ", qt"; strUsage += HelpMessageOpt("-debug=", strprintf(_("Output debugging information (default: %u, supplying is optional)"), 0) + ". " + @@ -457,7 +457,7 @@ std::string HelpMessage(HelpMessageMode mode) } strUsage += HelpMessageOpt("-shrinkdebugfile", _("Shrink debug.log file on client startup (default: 1 when no -debug)")); strUsage += HelpMessageOpt("-testnet", _("Use the test network")); - strUsage += HelpMessageOpt("-litemode=", strprintf(_("Disable all PIVX specific functionality (Masternodes, Obfuscation, SwiftTX, Budgeting) (0-1, default: %u)"), 0)); + strUsage += HelpMessageOpt("-litemode=", strprintf(_("Disable all PIVX specific functionality (Masternodes, Zerocoin, SwiftX, Budgeting) (0-1, default: %u)"), 0)); #ifdef ENABLE_WALLET strUsage += HelpMessageGroup(_("Staking options:")); @@ -486,8 +486,8 @@ std::string HelpMessage(HelpMessageMode mode) // strUsage += " -anonymizepivxamount= " + strprintf(_("Keep N PIV anonymized (default: %u)"), 0) + "\n"; // strUsage += " -liquidityprovider= " + strprintf(_("Provide liquidity to Obfuscation by infrequently mixing coins on a continual basis (0-100, default: %u, 1=very frequent, high fees, 100=very infrequent, low fees)"), 0) + "\n"; - strUsage += HelpMessageGroup(_("SwiftTX options:")); - strUsage += HelpMessageOpt("-enableswifttx=", strprintf(_("Enable swifttx, show confirmations for locked transactions (bool, default: %s)"), "true")); + strUsage += HelpMessageGroup(_("SwiftX options:")); + strUsage += HelpMessageOpt("-enableswifttx=", strprintf(_("Enable SwiftX, show confirmations for locked transactions (bool, default: %s)"), "true")); strUsage += HelpMessageOpt("-swifttxdepth=", strprintf(_("Show N confirmations for a successfully locked transaction (0-9999, default: %u)"), nSwiftTXDepth)); strUsage += HelpMessageGroup(_("Node relay options:")); diff --git a/src/main.cpp b/src/main.cpp index 5007a74a0556..0dcb034bd8ad 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3383,7 +3383,7 @@ bool DisconnectBlocksAndReprocess(int blocks) /* DisconnectBlockAndInputs - Remove conflicting blocks for successful SwiftTX transaction locks + Remove conflicting blocks for successful SwiftX transaction locks This should be very rare (Probably will never happen) */ // ***TODO*** clean up here diff --git a/src/qt/forms/sendcoinsdialog.ui b/src/qt/forms/sendcoinsdialog.ui index ab6f63dd097a..4e3e78763486 100644 --- a/src/qt/forms/sendcoinsdialog.ui +++ b/src/qt/forms/sendcoinsdialog.ui @@ -651,7 +651,7 @@ 0 0 830 - 95 + 113 @@ -1406,7 +1406,7 @@ - SwiftTX + SwiftX @@ -1460,7 +1460,7 @@ - + diff --git a/src/qt/pivxstrings.cpp b/src/qt/pivxstrings.cpp index c21a69a0b845..eb5783df81b8 100644 --- a/src/qt/pivxstrings.cpp +++ b/src/qt/pivxstrings.cpp @@ -50,7 +50,7 @@ QT_TRANSLATE_NOOP("pivx-core", "" "Delete all wallet transactions and only recover those parts of the " "blockchain through -rescan on startup"), QT_TRANSLATE_NOOP("pivx-core", "" -"Disable all PIVX specific functionality (Masternodes, Obfuscation, SwiftTX, " +"Disable all PIVX specific functionality (Masternodes, Obfuscation, SwiftX, " "Budgeting) (0-1, default: %u)"), QT_TRANSLATE_NOOP("pivx-core", "" "Distributed under the MIT software license, see the accompanying file " @@ -58,7 +58,7 @@ QT_TRANSLATE_NOOP("pivx-core", "" QT_TRANSLATE_NOOP("pivx-core", "" "Enable spork administration functionality with the appropriate private key."), QT_TRANSLATE_NOOP("pivx-core", "" -"Enable swifttx, show confirmations for locked transactions (bool, default: " +"Enable SwiftX, show confirmations for locked transactions (bool, default: " "%s)"), QT_TRANSLATE_NOOP("pivx-core", "" "Enter regression test mode, which uses a special chain in which blocks can " @@ -154,7 +154,7 @@ QT_TRANSLATE_NOOP("pivx-core", "" QT_TRANSLATE_NOOP("pivx-core", "" "Support filtering of blocks and transaction with bloom filters (default: %u)"), QT_TRANSLATE_NOOP("pivx-core", "" -"SwiftTX requires inputs with at least 6 confirmations, you might need to " +"SwiftX requires inputs with at least 6 confirmations, you might need to " "wait a few minutes and try again."), QT_TRANSLATE_NOOP("pivx-core", "" "This is a pre-release test build - use at your own risk - do not use for " @@ -268,10 +268,10 @@ QT_TRANSLATE_NOOP("pivx-core", "Do you want to rebuild the block database now?") QT_TRANSLATE_NOOP("pivx-core", "Done loading"), QT_TRANSLATE_NOOP("pivx-core", "Enable automatic Zerocoin minting (0-1, default: %u)"), QT_TRANSLATE_NOOP("pivx-core", "Enable publish hash block in
"), -QT_TRANSLATE_NOOP("pivx-core", "Enable publish hash transaction (locked via SwiftTX) in
"), +QT_TRANSLATE_NOOP("pivx-core", "Enable publish hash transaction (locked via SwiftX) in
"), QT_TRANSLATE_NOOP("pivx-core", "Enable publish hash transaction in
"), QT_TRANSLATE_NOOP("pivx-core", "Enable publish raw block in
"), -QT_TRANSLATE_NOOP("pivx-core", "Enable publish raw transaction (locked via SwiftTX) in
"), +QT_TRANSLATE_NOOP("pivx-core", "Enable publish raw transaction (locked via SwiftX) in
"), QT_TRANSLATE_NOOP("pivx-core", "Enable publish raw transaction in
"), QT_TRANSLATE_NOOP("pivx-core", "Enable staking functionality (0-1, default: %u)"), QT_TRANSLATE_NOOP("pivx-core", "Enable the client to act as a masternode (0-1, default: %u)"), @@ -421,7 +421,7 @@ QT_TRANSLATE_NOOP("pivx-core", "Stop running after importing blocks from disk (d QT_TRANSLATE_NOOP("pivx-core", "Submitted following entries to masternode: %u / %d"), QT_TRANSLATE_NOOP("pivx-core", "Submitted to masternode, waiting for more entries ( %u / %d ) %s"), QT_TRANSLATE_NOOP("pivx-core", "Submitted to masternode, waiting in queue %s"), -QT_TRANSLATE_NOOP("pivx-core", "SwiftTX options:"), +QT_TRANSLATE_NOOP("pivx-core", "SwiftX options:"), QT_TRANSLATE_NOOP("pivx-core", "Synchronization failed"), QT_TRANSLATE_NOOP("pivx-core", "Synchronization finished"), QT_TRANSLATE_NOOP("pivx-core", "Synchronization pending..."), diff --git a/src/qt/sendcoinsdialog.cpp b/src/qt/sendcoinsdialog.cpp index d568cdcd98d7..361b90acd9eb 100644 --- a/src/qt/sendcoinsdialog.cpp +++ b/src/qt/sendcoinsdialog.cpp @@ -270,7 +270,7 @@ void SendCoinsDialog::on_sendButton_clicked() if (ui->checkSwiftTX->isChecked()) { recipients[0].useSwiftTX = true; strFunds += " "; - strFunds += tr("and SwiftTX"); + strFunds += tr("and SwiftX"); } else { recipients[0].useSwiftTX = false; } diff --git a/src/qt/transactiondesc.cpp b/src/qt/transactiondesc.cpp index 21bce8664f3d..6fa4e8d37c77 100644 --- a/src/qt/transactiondesc.cpp +++ b/src/qt/transactiondesc.cpp @@ -42,30 +42,30 @@ QString TransactionDesc::FormatTxStatus(const CWalletTx& wtx) if (nDepth < 0) return tr("conflicted"); else if (GetAdjustedTime() - wtx.nTimeReceived > 2 * 60 && wtx.GetRequestCount() == 0) - return tr("%1/offline (verified via swifttx)").arg(nDepth); + return tr("%1/offline (verified via SwiftX)").arg(nDepth); else if (nDepth < 6) - return tr("%1/confirmed (verified via swifttx)").arg(nDepth); + return tr("%1/confirmed (verified via SwiftX)").arg(nDepth); else - return tr("%1 confirmations (verified via swifttx)").arg(nDepth); + return tr("%1 confirmations (verified via SwiftX)").arg(nDepth); } else { if (!wtx.IsTransactionLockTimedOut()) { int nDepth = wtx.GetDepthInMainChain(); if (nDepth < 0) return tr("conflicted"); else if (GetAdjustedTime() - wtx.nTimeReceived > 2 * 60 && wtx.GetRequestCount() == 0) - return tr("%1/offline (SwiftTX verification in progress - %2 of %3 signatures)").arg(nDepth).arg(signatures).arg(SWIFTTX_SIGNATURES_TOTAL); + return tr("%1/offline (SwiftX verification in progress - %2 of %3 signatures)").arg(nDepth).arg(signatures).arg(SWIFTTX_SIGNATURES_TOTAL); else if (nDepth < 6) - return tr("%1/confirmed (SwiftTX verification in progress - %2 of %3 signatures )").arg(nDepth).arg(signatures).arg(SWIFTTX_SIGNATURES_TOTAL); + return tr("%1/confirmed (SwiftX verification in progress - %2 of %3 signatures )").arg(nDepth).arg(signatures).arg(SWIFTTX_SIGNATURES_TOTAL); else - return tr("%1 confirmations (SwiftTX verification in progress - %2 of %3 signatures)").arg(nDepth).arg(signatures).arg(SWIFTTX_SIGNATURES_TOTAL); + return tr("%1 confirmations (SwiftX verification in progress - %2 of %3 signatures)").arg(nDepth).arg(signatures).arg(SWIFTTX_SIGNATURES_TOTAL); } else { int nDepth = wtx.GetDepthInMainChain(); if (nDepth < 0) return tr("conflicted"); else if (GetAdjustedTime() - wtx.nTimeReceived > 2 * 60 && wtx.GetRequestCount() == 0) - return tr("%1/offline (SwiftTX verification failed)").arg(nDepth); + return tr("%1/offline (SwiftX verification failed)").arg(nDepth); else if (nDepth < 6) - return tr("%1/confirmed (SwiftTX verification failed)").arg(nDepth); + return tr("%1/confirmed (SwiftX verification failed)").arg(nDepth); else return tr("%1 confirmations").arg(nDepth); } diff --git a/src/qt/walletmodel.cpp b/src/qt/walletmodel.cpp index f6dacd38748c..8369642009a9 100644 --- a/src/qt/walletmodel.cpp +++ b/src/qt/walletmodel.cpp @@ -307,7 +307,7 @@ WalletModel::SendCoinsReturn WalletModel::prepareTransaction(WalletModelTransact if (recipients[0].useSwiftTX && total > GetSporkValue(SPORK_5_MAX_VALUE) * COIN) { - emit message(tr("Send Coins"), tr("SwiftTX doesn't support sending values that high yet. Transactions are currently limited to %1 PIV.").arg(GetSporkValue(SPORK_5_MAX_VALUE)), + emit message(tr("Send Coins"), tr("SwiftX doesn't support sending values that high yet. Transactions are currently limited to %1 PIV.").arg(GetSporkValue(SPORK_5_MAX_VALUE)), CClientUIInterface::MSG_ERROR); return TransactionCreationFailed; } @@ -316,7 +316,7 @@ WalletModel::SendCoinsReturn WalletModel::prepareTransaction(WalletModelTransact transaction.setTransactionFee(nFeeRequired); if (recipients[0].useSwiftTX && newTx->GetValueOut() > GetSporkValue(SPORK_5_MAX_VALUE) * COIN) { - emit message(tr("Send Coins"), tr("SwiftTX doesn't support sending values that high yet. Transactions are currently limited to %1 PIV.").arg(GetSporkValue(SPORK_5_MAX_VALUE)), + emit message(tr("Send Coins"), tr("SwiftX doesn't support sending values that high yet. Transactions are currently limited to %1 PIV.").arg(GetSporkValue(SPORK_5_MAX_VALUE)), CClientUIInterface::MSG_ERROR); return TransactionCreationFailed; } diff --git a/src/swifttx.cpp b/src/swifttx.cpp index 4b0c683975e5..df6d4b3af7ab 100644 --- a/src/swifttx.cpp +++ b/src/swifttx.cpp @@ -121,7 +121,7 @@ void ProcessMessageSwiftTX(CNode* pfrom, std::string& strCommand, CDataStream& v return; } - } else if (strCommand == "txlvote") //SwiftTX Lock Consensus Votes + } else if (strCommand == "txlvote") // SwiftX Lock Consensus Votes { CConsensusVote ctx; vRecv >> ctx; @@ -189,12 +189,12 @@ bool IsIXTXValid(const CTransaction& txCollateral) } if (nValueOut > GetSporkValue(SPORK_5_MAX_VALUE) * COIN) { - LogPrint("swifttx", "IsIXTXValid - Transaction value too high - %s\n", txCollateral.ToString().c_str()); + LogPrint("swiftx", "IsIXTXValid - Transaction value too high - %s\n", txCollateral.ToString().c_str()); return false; } if (missingTx) { - LogPrint("swifttx", "IsIXTXValid - Unknown inputs in IX transaction - %s\n", txCollateral.ToString().c_str()); + LogPrint("swiftx", "IsIXTXValid - Unknown inputs in IX transaction - %s\n", txCollateral.ToString().c_str()); /* This happens sometimes for an unknown reason, so we'll return that it's a valid transaction. If someone submits an invalid transaction it will be rejected by the network anyway and this isn't @@ -204,7 +204,7 @@ bool IsIXTXValid(const CTransaction& txCollateral) } if (nValueIn - nValueOut < COIN * 0.01) { - LogPrint("swifttx", "IsIXTXValid - did not include enough fees in transaction %d\n%s\n", nValueOut - nValueIn, txCollateral.ToString().c_str()); + LogPrint("swiftx", "IsIXTXValid - did not include enough fees in transaction %d\n%s\n", nValueOut - nValueIn, txCollateral.ToString().c_str()); return false; } @@ -241,7 +241,7 @@ int64_t CreateNewLock(CTransaction tx) mapTxLocks.insert(make_pair(tx.GetHash(), newLock)); } else { mapTxLocks[tx.GetHash()].nBlockHeight = nBlockHeight; - LogPrint("swifttx", "CreateNewLock - Transaction Lock Exists %s !\n", tx.GetHash().ToString().c_str()); + LogPrint("swiftx", "CreateNewLock - Transaction Lock Exists %s !\n", tx.GetHash().ToString().c_str()); } @@ -256,30 +256,30 @@ void DoConsensusVote(CTransaction& tx, int64_t nBlockHeight) int n = mnodeman.GetMasternodeRank(activeMasternode.vin, nBlockHeight, MIN_SWIFTTX_PROTO_VERSION); if (n == -1) { - LogPrint("swifttx", "SwiftTX::DoConsensusVote - Unknown Masternode\n"); + LogPrint("swiftx", "SwiftX::DoConsensusVote - Unknown Masternode\n"); return; } if (n > SWIFTTX_SIGNATURES_TOTAL) { - LogPrint("swifttx", "SwiftTX::DoConsensusVote - Masternode not in the top %d (%d)\n", SWIFTTX_SIGNATURES_TOTAL, n); + LogPrint("swiftx", "SwiftX::DoConsensusVote - Masternode not in the top %d (%d)\n", SWIFTTX_SIGNATURES_TOTAL, n); return; } /* nBlockHeight calculated from the transaction is the authoritive source */ - LogPrint("swifttx", "SwiftTX::DoConsensusVote - In the top %d (%d)\n", SWIFTTX_SIGNATURES_TOTAL, n); + LogPrint("swiftx", "SwiftX::DoConsensusVote - In the top %d (%d)\n", SWIFTTX_SIGNATURES_TOTAL, n); CConsensusVote ctx; ctx.vinMasternode = activeMasternode.vin; ctx.txHash = tx.GetHash(); ctx.nBlockHeight = nBlockHeight; if (!ctx.Sign()) { - LogPrintf("SwiftTX::DoConsensusVote - Failed to sign consensus vote\n"); + LogPrintf("SwiftX::DoConsensusVote - Failed to sign consensus vote\n"); return; } if (!ctx.SignatureValid()) { - LogPrintf("SwiftTX::DoConsensusVote - Signature invalid\n"); + LogPrintf("SwiftX::DoConsensusVote - Signature invalid\n"); return; } @@ -296,29 +296,29 @@ bool ProcessConsensusVote(CNode* pnode, CConsensusVote& ctx) CMasternode* pmn = mnodeman.Find(ctx.vinMasternode); if (pmn != NULL) - LogPrint("swifttx", "SwiftTX::ProcessConsensusVote - Masternode ADDR %s %d\n", pmn->addr.ToString().c_str(), n); + LogPrint("swiftx", "SwiftX::ProcessConsensusVote - Masternode ADDR %s %d\n", pmn->addr.ToString().c_str(), n); if (n == -1) { //can be caused by past versions trying to vote with an invalid protocol - LogPrint("swifttx", "SwiftTX::ProcessConsensusVote - Unknown Masternode\n"); + LogPrint("swiftx", "SwiftX::ProcessConsensusVote - Unknown Masternode\n"); mnodeman.AskForMN(pnode, ctx.vinMasternode); return false; } if (n > SWIFTTX_SIGNATURES_TOTAL) { - LogPrint("swifttx", "SwiftTX::ProcessConsensusVote - Masternode not in the top %d (%d) - %s\n", SWIFTTX_SIGNATURES_TOTAL, n, ctx.GetHash().ToString().c_str()); + LogPrint("swiftx", "SwiftX::ProcessConsensusVote - Masternode not in the top %d (%d) - %s\n", SWIFTTX_SIGNATURES_TOTAL, n, ctx.GetHash().ToString().c_str()); return false; } if (!ctx.SignatureValid()) { - LogPrintf("SwiftTX::ProcessConsensusVote - Signature invalid\n"); + LogPrintf("SwiftX::ProcessConsensusVote - Signature invalid\n"); // don't ban, it could just be a non-synced masternode mnodeman.AskForMN(pnode, ctx.vinMasternode); return false; } if (!mapTxLocks.count(ctx.txHash)) { - LogPrintf("SwiftTX::ProcessConsensusVote - New Transaction Lock %s !\n", ctx.txHash.ToString().c_str()); + LogPrintf("SwiftX::ProcessConsensusVote - New Transaction Lock %s !\n", ctx.txHash.ToString().c_str()); CTransactionLock newLock; newLock.nBlockHeight = 0; @@ -327,7 +327,7 @@ bool ProcessConsensusVote(CNode* pnode, CConsensusVote& ctx) newLock.txHash = ctx.txHash; mapTxLocks.insert(make_pair(ctx.txHash, newLock)); } else - LogPrint("swifttx", "SwiftTX::ProcessConsensusVote - Transaction Lock Exists %s !\n", ctx.txHash.ToString().c_str()); + LogPrint("swiftx", "SwiftX::ProcessConsensusVote - Transaction Lock Exists %s !\n", ctx.txHash.ToString().c_str()); //compile consessus vote std::map::iterator i = mapTxLocks.find(ctx.txHash); @@ -342,10 +342,10 @@ bool ProcessConsensusVote(CNode* pnode, CConsensusVote& ctx) } #endif - LogPrint("swifttx", "SwiftTX::ProcessConsensusVote - Transaction Lock Votes %d - %s !\n", (*i).second.CountSignatures(), ctx.GetHash().ToString().c_str()); + LogPrint("swiftx", "SwiftX::ProcessConsensusVote - Transaction Lock Votes %d - %s !\n", (*i).second.CountSignatures(), ctx.GetHash().ToString().c_str()); if ((*i).second.CountSignatures() >= SWIFTTX_SIGNATURES_REQUIRED) { - LogPrint("swifttx", "SwiftTX::ProcessConsensusVote - Transaction Lock Is Complete %s !\n", (*i).second.GetHash().ToString().c_str()); + LogPrint("swiftx", "SwiftX::ProcessConsensusVote - Transaction Lock Is Complete %s !\n", (*i).second.GetHash().ToString().c_str()); CTransaction& tx = mapTxLockReq[ctx.txHash]; if (!CheckForConflictingLocks(tx)) { @@ -393,7 +393,7 @@ bool CheckForConflictingLocks(CTransaction& tx) BOOST_FOREACH (const CTxIn& in, tx.vin) { if (mapLockedInputs.count(in.prevout)) { if (mapLockedInputs[in.prevout] != tx.GetHash()) { - LogPrintf("SwiftTX::CheckForConflictingLocks - found two complete conflicting locks - removing both. %s %s", tx.GetHash().ToString().c_str(), mapLockedInputs[in.prevout].ToString().c_str()); + LogPrintf("SwiftX::CheckForConflictingLocks - found two complete conflicting locks - removing both. %s %s", tx.GetHash().ToString().c_str(), mapLockedInputs[in.prevout].ToString().c_str()); if (mapTxLocks.count(tx.GetHash())) mapTxLocks[tx.GetHash()].nExpiration = GetTime(); if (mapTxLocks.count(mapLockedInputs[in.prevout])) mapTxLocks[mapLockedInputs[in.prevout]].nExpiration = GetTime(); return true; @@ -464,12 +464,12 @@ bool CConsensusVote::SignatureValid() CMasternode* pmn = mnodeman.Find(vinMasternode); if (pmn == NULL) { - LogPrintf("SwiftTX::CConsensusVote::SignatureValid() - Unknown Masternode\n"); + LogPrintf("SwiftX::CConsensusVote::SignatureValid() - Unknown Masternode\n"); return false; } if (!obfuScationSigner.VerifyMessage(pmn->pubKeyMasternode, vchMasterNodeSignature, strMessage, errorMessage)) { - LogPrintf("SwiftTX::CConsensusVote::SignatureValid() - Verify message failed\n"); + LogPrintf("SwiftX::CConsensusVote::SignatureValid() - Verify message failed\n"); return false; } diff --git a/src/swifttx.h b/src/swifttx.h index ae010604adc1..6894897efdbf 100644 --- a/src/swifttx.h +++ b/src/swifttx.h @@ -16,7 +16,7 @@ /* At 15 signatures, 1/2 of the masternode network can be owned by - one party without comprimising the security of SwiftTX + one party without comprimising the security of SwiftX (1000/2150.0)**10 = 0.00047382219560689856 (1000/2900.0)**10 = 2.3769498616783657e-05 diff --git a/src/util.cpp b/src/util.cpp index faa7352a7e99..813590947da8 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -111,7 +111,7 @@ bool fMasterNode = false; string strMasterNodePrivKey = ""; string strMasterNodeAddr = ""; bool fLiteMode = false; -// SwiftTX +// SwiftX bool fEnableSwiftTX = true; int nSwiftTXDepth = 5; // Automatic Zerocoin minting @@ -240,7 +240,7 @@ bool LogAcceptCategory(const char* category) // "pivx" is a composite category enabling all PIVX-related debug output if (ptrCategory->count(string("pivx"))) { ptrCategory->insert(string("obfuscation")); - ptrCategory->insert(string("swifttx")); + ptrCategory->insert(string("swiftx")); ptrCategory->insert(string("masternode")); ptrCategory->insert(string("mnpayments")); ptrCategory->insert(string("zero")); diff --git a/src/wallet.cpp b/src/wallet.cpp index 570fb5657310..346af05527e0 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -2336,7 +2336,7 @@ bool CWallet::CreateTransaction(const vector >& vecSend, } if (useIX) { - strFailReason += " " + _("SwiftTX requires inputs with at least 6 confirmations, you might need to wait a few minutes and try again."); + strFailReason += " " + _("SwiftX requires inputs with at least 6 confirmations, you might need to wait a few minutes and try again."); } return false;