diff --git a/src/wallet.cpp b/src/wallet.cpp index acb9a8a1c9ac5..1eea619ea4d8b 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -4837,17 +4837,24 @@ void CWallet::ReconsiderZerocoins(std::list& listMintsRestored) return; for (CZerocoinMint mint : listMints) { - if (IsSerialKnown(mint.GetSerialNumber())) + if (IsSerialKnown(mint.GetSerialNumber())) { + LogPrintf("%s: serial %s is already in the blockchain\n", __func__, mint.GetSerialNumber().GetHex()); continue; + } + uint256 txHash; - if (!GetZerocoinMint(mint.GetValue(), txHash)) + if (!GetZerocoinMint(mint.GetValue(), txHash)) { + LogPrintf("%s: did not find pubcoin %s in database\n", __func__, mint.GetValue().GetHex()); continue; + } uint256 hashBlock = 0; CTransaction tx; - if (!GetTransaction(txHash, tx, hashBlock)) + if (!GetTransaction(txHash, tx, hashBlock)) { + LogPrintf("%s: failed to find transaction %s in blockchain\n", __func__, txHash.GetHex()); continue; + } mint.SetTxHash(txHash); mint.SetHeight(mapBlockIndex.at(hashBlock)->nHeight);