Browse Source

Test

etomic
jl777 8 years ago
parent
commit
d5b515f60d
  1. 2
      crypto777/bitcoind_RPC.c
  2. 5
      iguana/dpow/dpow_network.c
  3. 2
      iguana/exchanges/LP_unspents.c
  4. 2
      iguana/exchanges/mm.c
  5. 2
      iguana/iguana777.h
  6. 1
      iguana/iguana_notary.c

2
crypto777/bitcoind_RPC.c

@ -153,7 +153,7 @@ try_again:
curl_easy_setopt(curl_handle,CURLOPT_WRITEDATA, &s); // we pass our 's' struct to the callback
curl_easy_setopt(curl_handle,CURLOPT_NOSIGNAL, 1L); // supposed to fix "Alarm clock" and long jump crash
curl_easy_setopt(curl_handle,CURLOPT_NOPROGRESS, 1L); // no progress callback
curl_easy_setopt(curl_handle,CURLOPT_TIMEOUT, 6L);
//curl_easy_setopt(curl_handle,CURLOPT_TIMEOUT, 60L); // causes problems with iguana timeouts
if ( strncmp(url,"https",5) == 0 )
{
curl_easy_setopt(curl_handle,CURLOPT_SSL_VERIFYPEER,0);

5
iguana/dpow/dpow_network.c

@ -1183,7 +1183,10 @@ char *_dex_listunspentarg(struct supernet_info *myinfo,char *symbol,char *addres
char *_dex_listunspent(struct supernet_info *myinfo,char *symbol,char *address)
{
return(_dex_listunspentarg(myinfo,symbol,address,'u')); // 'U' old variant
char *retstr;
retstr = _dex_listunspentarg(myinfo,symbol,address,'u'); // 'U' old variant
//printf("_dex_listunspent.(%s)\n",retstr);
return(retstr);
}
char *_dex_listunspent2(struct supernet_info *myinfo,char *symbol,char *address)

2
iguana/exchanges/LP_unspents.c

@ -292,7 +292,7 @@ void LPinit(uint16_t port,double profitmargin)
}
}
}
sleep(10);
sleep(60);
}
}

2
iguana/exchanges/mm.c

@ -181,7 +181,7 @@ char *DEX_listunspent(char *coin,char *coinaddr)
{
char url[512],postdata[1024];
sprintf(url,"%s/?",IGUANA_URL);
sprintf(postdata,"{\"agent\":\"dex\",\"method\":\"listunspent\",\"address\":\"%s\",\"symbol\":\"%s\"}",coinaddr,coin);
sprintf(postdata,"{\"agent\":\"dex\",\"method\":\"listunspent\",\"address\":\"%s\",\"symbol\":\"%s\",\"timeout\":60000}",coinaddr,coin);
return(bitcoind_RPC(0,"dex",url,0,"listunspent",postdata));
}

2
iguana/iguana777.h

@ -167,7 +167,7 @@ struct supernet_info
#ifdef NOTARY_TESTMODE
char dexseed_ipaddrs[1][64];
#else
char dexseed_ipaddrs[8][64];
char dexseed_ipaddrs[4][64];
#endif
uint32_t dexipbits[128]; int32_t numdexipbits; portable_mutex_t dexmutex;
// compatibility

1
iguana/iguana_notary.c

@ -679,6 +679,7 @@ TWO_STRINGS(dex,listunspent,symbol,address)
}
else if ( coin != 0 && coin->FULLNODE < 0 )
return(jprint(dpow_listunspent(myinfo,coin,address),1));
//printf("call _dex_listunspent\n");
return(_dex_listunspent(myinfo,symbol,address));
}

Loading…
Cancel
Save