From f4d2c1a3ef80039e4279a420fe312adaaccbeefc Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 31 Jul 2018 05:40:47 -1100 Subject: [PATCH] Test --- src/cc/dice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cc/dice.cpp b/src/cc/dice.cpp index 8e4b2ba73..227957621 100644 --- a/src/cc/dice.cpp +++ b/src/cc/dice.cpp @@ -129,7 +129,7 @@ void *dicefinish(void *_ptr) { CTransaction tx; uint256 txid; char str[65]; int32_t result; res = DiceWinLoseTimeout(&result,0,name,ptr->fundingtxid,ptr->bettxid,ptr->iswin); - if ( result != 0 && res.size() > 64 && is_hexstr((char *)res.c_str(),0) > 64 ) + 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 ) @@ -138,7 +138,7 @@ void *dicefinish(void *_ptr) RelayTransaction(tx); fprintf(stderr,"%s\nresult.(%s)\n",res.c_str(),uint256_str(str,txid)); } - } else fprintf(stderr,"non-hex result.(%s)\n",res.c_str()); + } } free(ptr); return(0);