Skip to content

Commit 7f3ebf6

Browse files
committed
Don't exit early in ReconsiderZerocoins
Only exit if **BOTH** listMints and listDMints are empty.
1 parent 161ea63 commit 7f3ebf6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wallet.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4659,7 +4659,7 @@ bool CWallet::CreateZerocoinSpendTransaction(CAmount nValue, int nSecurityLevel,
46594659
if (vSelectedMints.empty()) {
46604660
listMints = zpivTracker->ListMints(true, true, true); // need to find mints to spend
46614661
if(listMints.empty()) {
4662-
receipt.SetStatus(_("Failed to find Zerocoins in in wallet.dat"), nStatus);
4662+
receipt.SetStatus(_("Failed to find Zerocoins in wallet.dat"), nStatus);
46634663
return false;
46644664
}
46654665

@@ -4939,7 +4939,7 @@ void CWallet::ReconsiderZerocoins(std::list<CZerocoinMint>& listMintsRestored, s
49394939
list<CZerocoinMint> listMints = walletdb.ListArchivedZerocoins();
49404940
list<CDeterministicMint> listDMints = walletdb.ListArchivedDeterministicMints();
49414941

4942-
if (listMints.empty())
4942+
if (listMints.empty() && listDMints.empty())
49434943
return;
49444944

49454945
for (CZerocoinMint mint : listMints) {

0 commit comments

Comments
 (0)