Skip to content

Commit

Permalink
[zPIV] mints coin control dialog min accumulation mature text removed…
Browse files Browse the repository at this point in the history
… + re mint change checkbox not visible anymore.
  • Loading branch information
furszy committed May 23, 2019
1 parent a8ce671 commit 262d5e7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 3 additions & 1 deletion src/qt/privacydialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ PrivacyDialog::PrivacyDialog(QWidget* parent) : QDialog(parent, Qt::WindowSystem
if(!settings.contains("fDenomsSectionMinimized"))
settings.setValue("fDenomsSectionMinimized", true);
minimizeDenomsSection(settings.value("fDenomsSectionMinimized").toBool());

ui->checkBoxMintChange->setVisible(false);
}

PrivacyDialog::~PrivacyDialog()
Expand Down Expand Up @@ -343,7 +345,7 @@ void PrivacyDialog::sendzPIV()
}

// Convert change to zPIV
bool fMintChange = ui->checkBoxMintChange->isChecked();
bool fMintChange = false;// ui->checkBoxMintChange->isChecked();

// Persist minimize change setting
fMinimizeChange = ui->checkBoxMinimizeChange->isChecked();
Expand Down
9 changes: 5 additions & 4 deletions src/qt/zpivcontroldialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ void ZPivControlDialog::updateList()

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

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

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

0 comments on commit 262d5e7

Please sign in to comment.