|
|
@ -97,7 +97,13 @@ int32_t LP_pullsock_check(char *myipaddr,int32_t pubsock,int32_t pullsock,double |
|
|
|
{ |
|
|
|
len = (int32_t)strlen(jsonstr) + 1; |
|
|
|
portable_mutex_lock(&LP_commandmutex); |
|
|
|
if ( LP_tradecommand(myipaddr,pubsock,argjson,&((uint8_t *)ptr)[len],recvsize - len,profitmargin) == 0 ) |
|
|
|
if ( jstr(argjson,"method") != 0 && strcmp(jstr(argjson,"method"),"forwardhex") == 0 ) |
|
|
|
{ |
|
|
|
printf("forwardhex\n"); |
|
|
|
if ( (retstr= LP_forwardhex(jbits256(argjson,"pubkey"),jstr(argjson,"hexstr"))) != 0 ) |
|
|
|
free(retstr); |
|
|
|
} |
|
|
|
else if ( LP_tradecommand(myipaddr,pubsock,argjson,&((uint8_t *)ptr)[len],recvsize - len,profitmargin) == 0 ) |
|
|
|
{ |
|
|
|
if ( (retstr= stats_JSON(argjson,"127.0.0.1",0)) != 0 ) |
|
|
|
{ |
|
|
|