Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
594ddf84d0
  1. 4
      .gitignore
  2. BIN
      agents/libcrypto777.a
  3. 7
      crypto777/bitcoind_RPC.c
  4. 2
      crypto777/iguana_OS.c
  5. 1
      iguana/m_clean
  6. 1
      iguana/m_osx
  7. 1
      iguana/m_unix
  8. 1
      iguana/m_win32
  9. 1
      iguana/m_win64
  10. 2
      tools/m_unix

4
.gitignore

@ -1,2 +1,6 @@
*.o
agents/iguana
agents/libcrypto777.a

BIN
agents/libcrypto777.a

Binary file not shown.

7
crypto777/bitcoind_RPC.c

@ -103,9 +103,14 @@ char *Jay_NXTrequest(char *command,char *params)
char *bitcoind_RPC(char **retstrp,char *debugstr,char *url,char *userpass,char *command,char *params)
{
static int count,count2; static double elapsedsum,elapsedsum2; extern int32_t USE_JAY;
static int didinit,count,count2; static double elapsedsum,elapsedsum2; extern int32_t USE_JAY;
struct curl_slist *headers = NULL; struct return_string s; CURLcode res; CURL *curl_handle;
char *bracket0,*bracket1,*databuf = 0; long len; int32_t specialcase,numretries; double starttime;
if ( didinit == 0 )
{
didinit = 1;
curl_global_init(CURL_GLOBAL_ALL); //init the curl session
}
if ( USE_JAY != 0 && (strncmp(url,"http://127.0.0.1:7876/nxt",strlen("http://127.0.0.1:7876/nxt")) == 0 || strncmp(url,"https://127.0.0.1:7876/nxt",strlen("https://127.0.0.1:7876/nxt")) == 0) )
{
if ( (databuf= Jay_NXTrequest(command,params)) != 0 )

2
crypto777/iguana_OS.c

@ -826,10 +826,8 @@ void *OS_tmpalloc(char *dirname,char *name,struct OS_memspace *mem,long origsize
return(OS_portable_tmpalloc(dirname,name,mem,origsize));
}
#include <curl/curl.h>
void OS_init()
{
curl_global_init(CURL_GLOBAL_ALL); //init the curl session
SaM_PrepareIndices();
return(OS_portable_init());
}

1
iguana/m_clean

@ -0,0 +1 @@
rm *.o

1
iguana/m_osx

@ -0,0 +1 @@
gcc -Wno-deprecated -o ../agents/iguana -O2 *.c ../agents/libcrypto777.a -lssl -lcrypto -lm

1
iguana/m_unix

@ -0,0 +1 @@
gcc -o ../agents/iguana -O2 *.c -lssl -lcrypto -lm

1
iguana/m_win32

@ -0,0 +1 @@
echo do equivalent of: gcc -o ../agents/iguana -O2 *.c -lssl -lcrypto -lm

1
iguana/m_win64

@ -0,0 +1 @@
echo do equivalent of: gcc -o ../agents/iguana -O2 *.c -lssl -lcrypto -lm

2
tools/m_unix

@ -1,2 +1,2 @@
git pull
make
gcc -o agent *.c libcrypto777.a

Loading…
Cancel
Save