Skip to content

Commit

Permalink
[QT] Fix a display bug about zPIV mints
Browse files Browse the repository at this point in the history
When opening the zPIV coin selection in privacy tab, if the wallet is
locked the message for all mints is that the seed is wrong. This commit
fixes it by replacing the message and stating that the locked wallet
prevents precomputation and spending.
  • Loading branch information
Warrows committed Mar 30, 2019
1 parent e488db7 commit 94bea35
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/qt/zpivcontroldialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ void ZPivControlDialog::updateList()
string strReason = "";
if(nConfirmations < Params().Zerocoin_MintRequiredConfirmations())
strReason = strprintf("Needs %d more confirmations", Params().Zerocoin_MintRequiredConfirmations() - nConfirmations);
else if (model->getEncryptionStatus() == WalletModel::EncryptionStatus::Locked)
strReason = "Your wallet is locked. Impossible to precompute or spend zPIV.";
else if (!mint.isSeedCorrect)
strReason = "The zPIV seed used to mint this zPIV is not the same as currently hold in the wallet";
else
Expand Down

0 comments on commit 94bea35

Please sign in to comment.