Skip to content

Commit 262d5e7

Browse files
committed
[zPIV] mints coin control dialog min accumulation mature text removed + re mint change checkbox not visible anymore.
1 parent a8ce671 commit 262d5e7

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

src/qt/privacydialog.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ PrivacyDialog::PrivacyDialog(QWidget* parent) : QDialog(parent, Qt::WindowSystem
109109
if(!settings.contains("fDenomsSectionMinimized"))
110110
settings.setValue("fDenomsSectionMinimized", true);
111111
minimizeDenomsSection(settings.value("fDenomsSectionMinimized").toBool());
112+
113+
ui->checkBoxMintChange->setVisible(false);
112114
}
113115

114116
PrivacyDialog::~PrivacyDialog()
@@ -343,7 +345,7 @@ void PrivacyDialog::sendzPIV()
343345
}
344346

345347
// Convert change to zPIV
346-
bool fMintChange = ui->checkBoxMintChange->isChecked();
348+
bool fMintChange = false;// ui->checkBoxMintChange->isChecked();
347349

348350
// Persist minimize change setting
349351
fMinimizeChange = ui->checkBoxMinimizeChange->isChecked();

src/qt/zpivcontroldialog.cpp

+5-4
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ void ZPivControlDialog::updateList()
8080

8181
//populate rows with mint info
8282
int nBestHeight = chainActive.Height();
83-
map<CoinDenomination, int> mapMaturityHeight = GetMintMaturityHeight();
83+
//map<CoinDenomination, int> mapMaturityHeight = GetMintMaturityHeight();
8484
for (const CMintMeta& mint : setMints) {
8585
// assign this mint to the correct denomination in the tree view
8686
libzerocoin::CoinDenomination denom = mint.denom;
@@ -123,9 +123,10 @@ void ZPivControlDialog::updateList()
123123
}
124124

125125
// check for maturity
126-
bool isMature = false;
127-
if (mapMaturityHeight.count(mint.denom))
128-
isMature = mint.nHeight < mapMaturityHeight.at(denom);
126+
// Always mature, public spends doesn't require any new accumulation.
127+
bool isMature = true;
128+
//if (mapMaturityHeight.count(mint.denom))
129+
// isMature = mint.nHeight < mapMaturityHeight.at(denom);
129130

130131
// disable selecting this mint if it is not spendable - also display a reason why
131132
bool fSpendable = isMature && nConfirmations >= Params().Zerocoin_MintRequiredConfirmations() && mint.isSeedCorrect;

0 commit comments

Comments
 (0)