Skip to content

Commit

Permalink
Fix irrelevant receipt status message
Browse files Browse the repository at this point in the history
Since security level has been removed, this status message needed to be
changed.

Also removed some stale unused code that was left over from when
security level was used.
  • Loading branch information
Fuzzbawls committed Mar 26, 2019
1 parent c015208 commit f79d6f1
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4744,7 +4744,7 @@ bool CWallet::MintsToInputVector(std::map<CBigNum, CZerocoinMint>& mapMintsSelec

// Generate the witness for each mint being spent
if (!GenerateAccumulatorWitness(coinWitness, mapAccumulators, pindexCheckpoint)) {
receipt.SetStatus(_("Try to spend with a higher security level to include more coins"),
receipt.SetStatus(_("Couldn't generate the accumulator witness"),
ZPIV_FAILED_ACCUMULATOR_INITIALIZATION);
return error("%s : %s", __func__, receipt.GetStatusMessage());
}
Expand Down Expand Up @@ -5003,13 +5003,6 @@ bool CWallet::CreateZerocoinSpendTransaction(CAmount nValue, CWalletTx& wtxNew,
//hash with only the output info in it to be used in Signature of Knowledge
uint256 hashTxOut = txNew.GetHash();

//Use the same accumulator checkpoint for each spend
int nHeightHighest = 0;
for (const CZerocoinMint& mint : vSelectedMints) {
if (mint.GetHeight() > nHeightHighest)
nHeightHighest = mint.GetHeight();
}

CBlockIndex* pindexCheckpoint = nullptr;
std::map<CBigNum, CZerocoinMint> mapSelectedMints;
for (const CZerocoinMint& mint : vSelectedMints)
Expand Down

0 comments on commit f79d6f1

Please sign in to comment.