Skip to content

Commit

Permalink
Remove nAnonymizePivxAmount and nLiquidityProvider
Browse files Browse the repository at this point in the history
These two variables have been meaningless since zPIV's introduction...

Nuke them from orbit!
  • Loading branch information
Fuzzbawls committed May 15, 2019
1 parent 886d806 commit 166b2d3
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 34 deletions.
18 changes: 0 additions & 18 deletions src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -566,9 +566,6 @@ std::string HelpMessage(HelpMessageMode mode)
#endif // ENABLE_WALLET
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));

// strUsage += " -anonymizepivxamount=<n> " + strprintf(_("Keep N PIV anonymized (default: %u)"), 0) + "\n";
// 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";

strUsage += HelpMessageGroup(_("SwiftX options:"));
strUsage += HelpMessageOpt("-enableswifttx=<n>", strprintf(_("Enable SwiftX, show confirmations for locked transactions (bool, default: %s)"), "true"));
strUsage += HelpMessageOpt("-swifttxdepth=<n>", strprintf(_("Show N confirmations for a successfully locked transaction (0-9999, default: %u)"), nSwiftTXDepth));
Expand Down Expand Up @@ -1924,20 +1921,6 @@ bool AppInit2()
nPreferredDenom = 0;
}

// XX42 Remove/refactor code below. Until then provide safe defaults
nAnonymizePivxAmount = 2;

// nLiquidityProvider = GetArg("-liquidityprovider", 0); //0-100
// if (nLiquidityProvider != 0) {
// obfuScationPool.SetMinBlockSpacing(std::min(nLiquidityProvider, 100) * 15);
// fEnableZeromint = true;
// nZeromintPercentage = 99999;
// }
//
// nAnonymizePivxAmount = GetArg("-anonymizepivxamount", 0);
// if (nAnonymizePivxAmount > 999999) nAnonymizePivxAmount = 999999;
// if (nAnonymizePivxAmount < 2) nAnonymizePivxAmount = 2;

fEnableSwiftTX = GetBoolArg("-enableswifttx", fEnableSwiftTX);
nSwiftTXDepth = GetArg("-swifttxdepth", nSwiftTXDepth);
nSwiftTXDepth = std::min(std::max(nSwiftTXDepth, 0), 60);
Expand All @@ -1950,7 +1933,6 @@ bool AppInit2()

LogPrintf("fLiteMode %d\n", fLiteMode);
LogPrintf("nSwiftTXDepth %d\n", nSwiftTXDepth);
LogPrintf("Anonymize PIVX Amount %d\n", nAnonymizePivxAmount);
LogPrintf("Budget Mode %s\n", strBudgetMode.c_str());

/* Denominations
Expand Down
12 changes: 0 additions & 12 deletions src/qt/optionsmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,6 @@ void OptionsModel::Init()
settings.setValue("nPreferredDenom", 0);
nPreferredDenom = settings.value("nPreferredDenom", "0").toLongLong();

if (!settings.contains("nAnonymizePivxAmount"))
settings.setValue("nAnonymizePivxAmount", 1000);

nAnonymizePivxAmount = settings.value("nAnonymizePivxAmount").toLongLong();

if (!settings.contains("fShowMasternodesTab"))
settings.setValue("fShowMasternodesTab", masternodeConfig.getCount());

Expand Down Expand Up @@ -272,8 +267,6 @@ QVariant OptionsModel::data(const QModelIndex& index, int role) const
return QVariant(nZeromintPercentage);
case ZeromintPrefDenom:
return QVariant(nPreferredDenom);
case AnonymizePivxAmount:
return QVariant(nAnonymizePivxAmount);
case Listen:
return settings.value("fListen");
default:
Expand Down Expand Up @@ -410,11 +403,6 @@ bool OptionsModel::setData(const QModelIndex& index, const QVariant& value, int
settings.setValue("fHideOrphans", fHideOrphans);
emit hideOrphansChanged(fHideOrphans);
break;
case AnonymizePivxAmount:
nAnonymizePivxAmount = value.toInt();
settings.setValue("nAnonymizePivxAmount", nAnonymizePivxAmount);
emit anonymizePivxAmountChanged(nAnonymizePivxAmount);
break;
case CoinControlFeatures:
fCoinControlFeatures = value.toBool();
settings.setValue("fCoinControlFeatures", fCoinControlFeatures);
Expand Down
2 changes: 0 additions & 2 deletions src/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,6 @@ int nZeromintPercentage = 10;
int nPreferredDenom = 0;
const int64_t AUTOMINT_DELAY = (60 * 5); // Wait at least 5 minutes until Automint starts

int nAnonymizePivxAmount = 1000;
int nLiquidityProvider = 0;
/** Spork enforcement enabled time */
int64_t enforceMasternodePaymentsTime = 4085657524;
bool fSucessfullyLoaded = false;
Expand Down
2 changes: 0 additions & 2 deletions src/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ extern int nSwiftTXDepth;
extern int nZeromintPercentage;
extern const int64_t AUTOMINT_DELAY;
extern int nPreferredDenom;
extern int nAnonymizePivxAmount;
extern int nLiquidityProvider;
extern bool fEnableZeromint;
extern bool fEnableAutoConvert;
extern int64_t enforceMasternodePaymentsTime;
Expand Down

0 comments on commit 166b2d3

Please sign in to comment.