Debug stuff to track down what is up with this sync bug

This commit is contained in:
Duke Leto
2019-10-11 22:16:12 -04:00
parent b40a4e9c82
commit ce043aaac4

View File

@@ -561,7 +561,10 @@ unsigned int CCoinsViewCache::GetCacheSize() const {
const CTxOut &CCoinsViewCache::GetOutputFor(const CTxIn& input) const
{
const CCoins* coins = AccessCoins(input.prevout.hash);
fprintf(stderr, "GetOutputFor: input=%s", input.ToString().c_str());
fprintf(stderr, "GetOutputFor: prevout n=%d,txid=%s\n", input.prevout.n, input.prevout.hash.ToString().c_str());
assert(coins && coins->IsAvailable(input.prevout.n));
fprintf(stderr, "GetOutputFor: IsAvailable\n");
return coins->vout[input.prevout.n];
}