This commit is contained in:
jl777
2018-11-08 09:42:46 -11:00
parent 80671b17bd
commit 60152b4ea6

View File

@@ -404,11 +404,11 @@ void *dicefinish(void *_ptr)
} }
free(cmd); free(cmd);
} }
res = DICE_ENTROPYTX; std::string entropyrawtx = DICE_ENTROPYTX;
if ( res.empty() == 0 && res.size() > 64 ) if ( entropyrawtx.empty() == 0 && entropyrawtx.size() > 64 )
{ {
char cmdbuf[8192]; std::string res; char cmdbuf[8192];
sprintf(cmdbuf,"./komodo-cli -ac_name=%s sendrawtransaction %s",ASSETCHAINS_SYMBOL,res.c_str()); sprintf(cmdbuf,"./komodo-cli -ac_name=%s sendrawtransaction %s",ASSETCHAINS_SYMBOL,entropyrawtx.c_str());
fprintf(stderr,"(%s)\n",cmdbuf); fprintf(stderr,"(%s)\n",cmdbuf);
if ( system(cmdbuf) != 0 ) if ( system(cmdbuf) != 0 )
fprintf(stderr,"error (%s)\n",cmdbuf); fprintf(stderr,"error (%s)\n",cmdbuf);