From 9fc43996cd04e91cb6dee43028da88bdd2bbcd47 Mon Sep 17 00:00:00 2001 From: blackjok3r Date: Mon, 29 Oct 2018 13:03:40 +0800 Subject: [PATCH] fix? --- src/cc/dice.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cc/dice.cpp b/src/cc/dice.cpp index 2e20139c2..3f166eb9f 100644 --- a/src/cc/dice.cpp +++ b/src/cc/dice.cpp @@ -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"); } }