hentropy2
This commit is contained in:
@@ -248,10 +248,11 @@ bool DiceValidate(struct CCcontract_info *cp,Eval* eval,const CTransaction &tx)
|
||||
return eval->Invalid("always should find vin.0, but didnt");
|
||||
else if ( DiceIsmine(vinTx.vout[1].scriptPubKey) != 0 && vinTx.vout.size() > 0 )
|
||||
{
|
||||
uint64_t vinsbits; uint256 vinfundingtxid,hentropy; char str[65];
|
||||
uint64_t vinsbits; uint256 vinfundingtxid,hentropy,hentropy2,entropy; char str[65],str2[65];
|
||||
if ( DecodeDiceOpRet(txid,vinTx.vout[vinTx.vout.size()-1].scriptPubKey,vinsbits,vinfundingtxid,hentropy) == 'E' && sbits == vinsbits && fundingtxid == vinfundingtxid )
|
||||
{
|
||||
fprintf(stderr,"I am house entropy %.8f hentropy.(%s)\n",(double)vinTx.vout[0].nValue/COIN,uint256_str(str,hentropy));
|
||||
hentropy2 = DiceHashEntropy(entropy,vinTx.vin[0].prevhash);
|
||||
fprintf(stderr,"I am house entropy %.8f hentropy.(%s) vs %s\n",(double)vinTx.vout[0].nValue/COIN,uint256_str(str,hentropy),uint256_str(str,hentropy2));
|
||||
}
|
||||
}
|
||||
return eval->Invalid("dont confirm bet during debug");
|
||||
|
||||
Reference in New Issue
Block a user