From e054db050515fa644a0dbc8ed5b44eb4b1758cc7 Mon Sep 17 00:00:00 2001 From: blackjok3r Date: Mon, 29 Oct 2018 16:15:04 +0800 Subject: [PATCH] ? --- src/cc/dice.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cc/dice.cpp b/src/cc/dice.cpp index aecfa17d1..96d372523 100644 --- a/src/cc/dice.cpp +++ b/src/cc/dice.cpp @@ -555,9 +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); - char str[65]; - fprintf(stderr, "txid.%s tx.%s hashBlock.%s\n",uint256_str(str,txid),uint256_str(str,tx.vin[1].prevout.hash),uint256_str(str,hashBlock)); - if ( tries > 20 ) { + char str[65],str2[65],str3[65] + fprintf(stderr, "txid.%s tx.%s hashBlock.%s\n",uint256_str(str,txid),uint256_str(str2,tx.vin[1].prevout.hash),uint256_str(str3,hashBlock)); + if ( tries > 10 ) { return eval->Invalid("always should find after 60s of looking vin.0, but didnt for wlt"); } }