This commit is contained in:
jl777
2018-08-01 05:24:19 -11:00
parent 60fbf4f325
commit ca2e068604

View File

@@ -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));