test
This commit is contained in:
@@ -23,7 +23,7 @@
|
|||||||
#include <curl/easy.h>
|
#include <curl/easy.h>
|
||||||
#endif
|
#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 MemoryStruct { char *memory; size_t size; };
|
||||||
struct return_string { char *ptr; size_t len; };
|
struct return_string { char *ptr; size_t len; };
|
||||||
|
|||||||
@@ -479,13 +479,13 @@ void komodo_gateway_iteration(char *symbol)
|
|||||||
for (i=0; i<n; i++)
|
for (i=0; i<n; i++)
|
||||||
{
|
{
|
||||||
item = jitem(array,i);
|
item = jitem(array,i);
|
||||||
coinaddr = jstr(item,"address");
|
coinaddr = jstr(item,(char *)"address");
|
||||||
value = jdouble(item,"KMD") * COIN;
|
value = jdouble(item,(char *)"KMD") * COIN;
|
||||||
shortflag = juint(item,"short");
|
shortflag = juint(item,(char *)"short");
|
||||||
vout = jint(item,"prev_vout");
|
vout = jint(item,(char *)"prev_vout");
|
||||||
height = jint(item,"height");
|
height = jint(item,(char *)"height");
|
||||||
base = jstr(item,"fiat");
|
base = jstr(item,(char *)"fiat");
|
||||||
txidstr = jstr(item,"prev_hash");
|
txidstr = jstr(item,(char *)"prev_hash");
|
||||||
if ( coinaddr != 0 && base != 0 && value > 0 && height > 0 )
|
if ( coinaddr != 0 && base != 0 && value > 0 && height > 0 )
|
||||||
{
|
{
|
||||||
fiatoshis = jdouble(item,base) * COIN;
|
fiatoshis = jdouble(item,base) * COIN;
|
||||||
|
|||||||
Reference in New Issue
Block a user