From ca2e06860472b97fd0c61a7bd3c990e0a8b54395 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 1 Aug 2018 05:24:19 -1100 Subject: [PATCH] Test --- src/cc/dice.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cc/dice.cpp b/src/cc/dice.cpp index 672c93a0d..a2544fc44 100644 --- a/src/cc/dice.cpp +++ b/src/cc/dice.cpp @@ -122,18 +122,18 @@ void *dicefinish(void *_ptr) for (i=0; i<10; i++) { res = DiceWinLoseTimeout(&result,0,name,ptr->fundingtxid,ptr->bettxid,ptr->iswin); - txid = tx.GetHash(); - if ( i == 0 ) - fprintf(stderr,"iter.%d %s\nresult.(%s)\n",i,res.c_str(),uint256_str(str,txid)); if ( result != 0 && res.empty() == 0 && res.size() > 64 && is_hexstr((char *)res.c_str(),0) > 64 ) { //LOCK(cs_main); if ( DecodeHexTx(tx,res) != 0 ) { + txid = tx.GetHash(); + if ( i == 0 ) + fprintf(stderr,"iter.%d %s\nresult.(%s)\n",i,res.c_str(),uint256_str(str,txid)); if ( myAddtomempool(tx) == 0 ) { RelayTransaction(tx); - fprintf(stderr,"Relay transaction\n"); + fprintf(stderr,"Relay transaction.%d\n",i); if ( myAddtomempool(tx) != 0 ) { fprintf(stderr,"result tx %s in mempool\n",uint256_str(str,txid));