This commit is contained in:
blackjok3r
2018-10-29 13:03:40 +08:00
parent da7291922e
commit 9fc43996cd

View File

@@ -555,7 +555,9 @@ bool DiceValidate(struct CCcontract_info *cp,Eval *eval,const CTransaction &tx)
while ( eval->GetTxUnconfirmed(tx.vin[1].prevout.hash,vinTx,hashBlock) == 0 ) {
tries++;
sleep(1);
if ( tries > 60 ) {
char str[65];
fprintf(stderr, "tx.%s hashBlock.%s\n",uint256_str(str,tx.vin[1].prevout.hash),uint256_str(str,hashBlock));
if ( tries > 20 ) {
return eval->Invalid("always should find after 60s of looking vin.0, but didnt for wlt");
}
}