+/- prints

This commit is contained in:
jl777
2019-02-28 19:56:19 -11:00
parent 2e04207920
commit e06dcabe9e
2 changed files with 6 additions and 5 deletions

View File

@@ -2083,14 +2083,14 @@ bool myGetTransaction(const uint256 &hash, CTransaction &txOut, uint256 &hashBlo
memset(&hashBlock,0,sizeof(hashBlock));
// need a GetTransaction without lock so the validation code for assets can run without deadlock
{
fprintf(stderr,"check mempool %s\n",hash.GetHex().c_str());
//fprintf(stderr,"check mempool %s\n",hash.GetHex().c_str());
if (mempool.lookup(hash, txOut))
{
//fprintf(stderr,"found in mempool\n");
return true;
}
}
fprintf(stderr,"check disk %s\n",hash.GetHex().c_str());
//fprintf(stderr,"check disk %s\n",hash.GetHex().c_str());
if (fTxIndex) {
CDiskTxPos postx;
@@ -2112,11 +2112,11 @@ bool myGetTransaction(const uint256 &hash, CTransaction &txOut, uint256 &hashBlo
hashBlock = header.GetHash();
if (txOut.GetHash() != hash)
return error("%s: txid mismatch", __func__);
fprintf(stderr,"found on disk %s\n",hash.GetHex().c_str());
//fprintf(stderr,"found on disk %s\n",hash.GetHex().c_str());
return true;
}
}
fprintf(stderr,"not found on disk %s\n",hash.GetHex().c_str());
//fprintf(stderr,"not found on disk %s\n",hash.GetHex().c_str());
return false;
}