Skip to content

Commit 166b2d3

Browse files
committed
Remove nAnonymizePivxAmount and nLiquidityProvider
These two variables have been meaningless since zPIV's introduction... Nuke them from orbit!
1 parent 886d806 commit 166b2d3

File tree

4 files changed

+0
-34
lines changed

4 files changed

+0
-34
lines changed

src/init.cpp

-18
Original file line numberDiff line numberDiff line change
@@ -566,9 +566,6 @@ std::string HelpMessage(HelpMessageMode mode)
566566
#endif // ENABLE_WALLET
567567
strUsage += HelpMessageOpt("-reindexzerocoin=<n>", strprintf(_("Delete all zerocoin spends and mints that have been recorded to the blockchain database and reindex them (0-1, default: %u)"), 0));
568568

569-
// strUsage += " -anonymizepivxamount=<n> " + strprintf(_("Keep N PIV anonymized (default: %u)"), 0) + "\n";
570-
// strUsage += " -liquidityprovider=<n> " + 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";
571-
572569
strUsage += HelpMessageGroup(_("SwiftX options:"));
573570
strUsage += HelpMessageOpt("-enableswifttx=<n>", strprintf(_("Enable SwiftX, show confirmations for locked transactions (bool, default: %s)"), "true"));
574571
strUsage += HelpMessageOpt("-swifttxdepth=<n>", strprintf(_("Show N confirmations for a successfully locked transaction (0-9999, default: %u)"), nSwiftTXDepth));
@@ -1924,20 +1921,6 @@ bool AppInit2()
19241921
nPreferredDenom = 0;
19251922
}
19261923

1927-
// XX42 Remove/refactor code below. Until then provide safe defaults
1928-
nAnonymizePivxAmount = 2;
1929-
1930-
// nLiquidityProvider = GetArg("-liquidityprovider", 0); //0-100
1931-
// if (nLiquidityProvider != 0) {
1932-
// obfuScationPool.SetMinBlockSpacing(std::min(nLiquidityProvider, 100) * 15);
1933-
// fEnableZeromint = true;
1934-
// nZeromintPercentage = 99999;
1935-
// }
1936-
//
1937-
// nAnonymizePivxAmount = GetArg("-anonymizepivxamount", 0);
1938-
// if (nAnonymizePivxAmount > 999999) nAnonymizePivxAmount = 999999;
1939-
// if (nAnonymizePivxAmount < 2) nAnonymizePivxAmount = 2;
1940-
19411924
fEnableSwiftTX = GetBoolArg("-enableswifttx", fEnableSwiftTX);
19421925
nSwiftTXDepth = GetArg("-swifttxdepth", nSwiftTXDepth);
19431926
nSwiftTXDepth = std::min(std::max(nSwiftTXDepth, 0), 60);
@@ -1950,7 +1933,6 @@ bool AppInit2()
19501933

19511934
LogPrintf("fLiteMode %d\n", fLiteMode);
19521935
LogPrintf("nSwiftTXDepth %d\n", nSwiftTXDepth);
1953-
LogPrintf("Anonymize PIVX Amount %d\n", nAnonymizePivxAmount);
19541936
LogPrintf("Budget Mode %s\n", strBudgetMode.c_str());
19551937

19561938
/* Denominations

src/qt/optionsmodel.cpp

-12
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,6 @@ void OptionsModel::Init()
9797
settings.setValue("nPreferredDenom", 0);
9898
nPreferredDenom = settings.value("nPreferredDenom", "0").toLongLong();
9999

100-
if (!settings.contains("nAnonymizePivxAmount"))
101-
settings.setValue("nAnonymizePivxAmount", 1000);
102-
103-
nAnonymizePivxAmount = settings.value("nAnonymizePivxAmount").toLongLong();
104-
105100
if (!settings.contains("fShowMasternodesTab"))
106101
settings.setValue("fShowMasternodesTab", masternodeConfig.getCount());
107102

@@ -272,8 +267,6 @@ QVariant OptionsModel::data(const QModelIndex& index, int role) const
272267
return QVariant(nZeromintPercentage);
273268
case ZeromintPrefDenom:
274269
return QVariant(nPreferredDenom);
275-
case AnonymizePivxAmount:
276-
return QVariant(nAnonymizePivxAmount);
277270
case Listen:
278271
return settings.value("fListen");
279272
default:
@@ -410,11 +403,6 @@ bool OptionsModel::setData(const QModelIndex& index, const QVariant& value, int
410403
settings.setValue("fHideOrphans", fHideOrphans);
411404
emit hideOrphansChanged(fHideOrphans);
412405
break;
413-
case AnonymizePivxAmount:
414-
nAnonymizePivxAmount = value.toInt();
415-
settings.setValue("nAnonymizePivxAmount", nAnonymizePivxAmount);
416-
emit anonymizePivxAmountChanged(nAnonymizePivxAmount);
417-
break;
418406
case CoinControlFeatures:
419407
fCoinControlFeatures = value.toBool();
420408
settings.setValue("fCoinControlFeatures", fCoinControlFeatures);

src/util.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,6 @@ int nZeromintPercentage = 10;
105105
int nPreferredDenom = 0;
106106
const int64_t AUTOMINT_DELAY = (60 * 5); // Wait at least 5 minutes until Automint starts
107107

108-
int nAnonymizePivxAmount = 1000;
109-
int nLiquidityProvider = 0;
110108
/** Spork enforcement enabled time */
111109
int64_t enforceMasternodePaymentsTime = 4085657524;
112110
bool fSucessfullyLoaded = false;

src/util.h

-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ extern int nSwiftTXDepth;
3939
extern int nZeromintPercentage;
4040
extern const int64_t AUTOMINT_DELAY;
4141
extern int nPreferredDenom;
42-
extern int nAnonymizePivxAmount;
43-
extern int nLiquidityProvider;
4442
extern bool fEnableZeromint;
4543
extern bool fEnableAutoConvert;
4644
extern int64_t enforceMasternodePaymentsTime;

0 commit comments

Comments
 (0)