This commit is contained in:
jl777
2016-11-06 20:57:01 -03:00
parent 77be6cd9d3
commit 51508fedbd
2 changed files with 8 additions and 8 deletions

View File

@@ -23,7 +23,7 @@
#include <curl/easy.h>
#endif
#define issue_curl(cmdstr) bitcoind_RPC(0,"curl","http://127.0.0.1:7771",0,cmdstr,0)
#define issue_curl(cmdstr) bitcoind_RPC(0,"curl","http://127.0.0.1:7771",0,(char *)(cmdstr),0)
struct MemoryStruct { char *memory; size_t size; };
struct return_string { char *ptr; size_t len; };

View File

@@ -479,13 +479,13 @@ void komodo_gateway_iteration(char *symbol)
for (i=0; i<n; i++)
{
item = jitem(array,i);
coinaddr = jstr(item,"address");
value = jdouble(item,"KMD") * COIN;
shortflag = juint(item,"short");
vout = jint(item,"prev_vout");
height = jint(item,"height");
base = jstr(item,"fiat");
txidstr = jstr(item,"prev_hash");
coinaddr = jstr(item,(char *)"address");
value = jdouble(item,(char *)"KMD") * COIN;
shortflag = juint(item,(char *)"short");
vout = jint(item,(char *)"prev_vout");
height = jint(item,(char *)"height");
base = jstr(item,(char *)"fiat");
txidstr = jstr(item,(char *)"prev_hash");
if ( coinaddr != 0 && base != 0 && value > 0 && height > 0 )
{
fiatoshis = jdouble(item,base) * COIN;