+/- prints
This commit is contained in:
@@ -539,6 +539,7 @@ int32_t rogue_findbaton(struct CCcontract_info *cp,uint256 &playertxid,char **ke
|
|||||||
}
|
}
|
||||||
if ( keystrokesp != 0 && myGetTransaction(spenttxid,spenttx,hashBlock) != 0 && spenttx.vout.size() >= 2 )
|
if ( keystrokesp != 0 && myGetTransaction(spenttxid,spenttx,hashBlock) != 0 && spenttx.vout.size() >= 2 )
|
||||||
{
|
{
|
||||||
|
fprintf(stderr,"declares\n");
|
||||||
uint256 g,b; CPubKey p; std::vector<uint8_t> k;
|
uint256 g,b; CPubKey p; std::vector<uint8_t> k;
|
||||||
fprintf(stderr,"decode keys\n");
|
fprintf(stderr,"decode keys\n");
|
||||||
if ( rogue_keystrokesopretdecode(g,b,p,k,spenttx.vout[spenttx.vout.size()-1].scriptPubKey) == 'K' )
|
if ( rogue_keystrokesopretdecode(g,b,p,k,spenttx.vout[spenttx.vout.size()-1].scriptPubKey) == 'K' )
|
||||||
@@ -552,12 +553,12 @@ int32_t rogue_findbaton(struct CCcontract_info *cp,uint256 &playertxid,char **ke
|
|||||||
fprintf(stderr,"updated keystrokes.%p[%d]\n",keystrokes,numkeys);
|
fprintf(stderr,"updated keystrokes.%p[%d]\n",keystrokes,numkeys);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
fprintf(stderr,"n.%d txid.%s\n",n,txid.GetHex().c_str());
|
||||||
if ( ++n >= ROGUE_MAXITERATIONS )
|
if ( ++n >= ROGUE_MAXITERATIONS )
|
||||||
{
|
{
|
||||||
fprintf(stderr,"rogue_findbaton n.%d, seems something is wrong\n",n);
|
fprintf(stderr,"rogue_findbaton n.%d, seems something is wrong\n",n);
|
||||||
return(-5);
|
return(-5);
|
||||||
}
|
}
|
||||||
//fprintf(stderr,"n.%d txid.%s\n",n,txid.GetHex().c_str());
|
|
||||||
}
|
}
|
||||||
//fprintf(stderr,"set baton %s\n",txid.GetHex().c_str());
|
//fprintf(stderr,"set baton %s\n",txid.GetHex().c_str());
|
||||||
batontxid = txid;
|
batontxid = txid;
|
||||||
|
|||||||
@@ -2083,14 +2083,14 @@ bool myGetTransaction(const uint256 &hash, CTransaction &txOut, uint256 &hashBlo
|
|||||||
memset(&hashBlock,0,sizeof(hashBlock));
|
memset(&hashBlock,0,sizeof(hashBlock));
|
||||||
// need a GetTransaction without lock so the validation code for assets can run without deadlock
|
// 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))
|
if (mempool.lookup(hash, txOut))
|
||||||
{
|
{
|
||||||
//fprintf(stderr,"found in mempool\n");
|
//fprintf(stderr,"found in mempool\n");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fprintf(stderr,"check disk %s\n",hash.GetHex().c_str());
|
//fprintf(stderr,"check disk %s\n",hash.GetHex().c_str());
|
||||||
|
|
||||||
if (fTxIndex) {
|
if (fTxIndex) {
|
||||||
CDiskTxPos postx;
|
CDiskTxPos postx;
|
||||||
@@ -2112,11 +2112,11 @@ bool myGetTransaction(const uint256 &hash, CTransaction &txOut, uint256 &hashBlo
|
|||||||
hashBlock = header.GetHash();
|
hashBlock = header.GetHash();
|
||||||
if (txOut.GetHash() != hash)
|
if (txOut.GetHash() != hash)
|
||||||
return error("%s: txid mismatch", __func__);
|
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;
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user