Skip to content

Commit 993fcee

Browse files
committed
Add debug info for CWallet::ReconsiderZerocoins().
1 parent b6a02e9 commit 993fcee

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/wallet.cpp

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4837,17 +4837,24 @@ void CWallet::ReconsiderZerocoins(std::list<CZerocoinMint>& listMintsRestored)
48374837
return;
48384838

48394839
for (CZerocoinMint mint : listMints) {
4840-
if (IsSerialKnown(mint.GetSerialNumber()))
4840+
if (IsSerialKnown(mint.GetSerialNumber())) {
4841+
LogPrintf("%s: serial %s is already in the blockchain\n", __func__, mint.GetSerialNumber().GetHex());
48414842
continue;
4843+
}
4844+
48424845

48434846
uint256 txHash;
4844-
if (!GetZerocoinMint(mint.GetValue(), txHash))
4847+
if (!GetZerocoinMint(mint.GetValue(), txHash)) {
4848+
LogPrintf("%s: did not find pubcoin %s in database\n", __func__, mint.GetValue().GetHex());
48454849
continue;
4850+
}
48464851

48474852
uint256 hashBlock = 0;
48484853
CTransaction tx;
4849-
if (!GetTransaction(txHash, tx, hashBlock))
4854+
if (!GetTransaction(txHash, tx, hashBlock)) {
4855+
LogPrintf("%s: failed to find transaction %s in blockchain\n", __func__, txHash.GetHex());
48504856
continue;
4857+
}
48514858

48524859
mint.SetTxHash(txHash);
48534860
mint.SetHeight(mapBlockIndex.at(hashBlock)->nHeight);

0 commit comments

Comments
 (0)