|
|
@ -26,7 +26,7 @@ |
|
|
|
#include <WinSock2.h> |
|
|
|
#endif |
|
|
|
|
|
|
|
#define ELECTRUM_TIMEOUT 2 |
|
|
|
#define ELECTRUM_TIMEOUT 5 |
|
|
|
|
|
|
|
int32_t LP_socket(int32_t bindflag,char *hostname,uint16_t port) |
|
|
|
{ |
|
|
@ -326,7 +326,7 @@ cJSON *electrum_submit(char *symbol,struct electrum_info *ep,cJSON **retjsonp,ch |
|
|
|
usleep(10000); |
|
|
|
if ( retjson == 0 ) |
|
|
|
{ |
|
|
|
printf("unexpected timeout with null retjson\n"); |
|
|
|
printf("unexpected timeout with null retjson: %s %s\n",method,params); |
|
|
|
retjson = cJSON_Parse("{\"error\":\"timeout\"}"); |
|
|
|
} |
|
|
|
} |
|
|
|