diff --git a/src/cc/CCinclude.h b/src/cc/CCinclude.h index 29bdcf900..717fd2da6 100644 --- a/src/cc/CCinclude.h +++ b/src/cc/CCinclude.h @@ -51,6 +51,7 @@ bool GetAddressUnspent(uint160 addressHash, int type,std::vectorfundingtxid,ptr->bettxid,ptr->iswin); - fprintf(stderr,"result.(%s)\n",res.c_str()); + if ( is_hexstr((char *)res.c_str(),0) > 64 ) + { + CTransaction tx; uint256 txid; char str[65]; + LOCK(cs_main); + if ( DecodeHexTx(tx,res) != 0 ) + { + txid = tx.GetHash(); + RelayTransaction(tx); + fprintf(stderr,"result.(%s)\n",uint256_str(str,txid)); + } + } else fprintf(stderr,"result.(%s)\n",res.c_str()); } free(ptr); return(0);