Browse Source

Test

etomic
jl777 8 years ago
parent
commit
c2f4e55508
  1. 6
      iguana/exchanges/LP_forwarding.c

6
iguana/exchanges/LP_forwarding.c

@ -136,9 +136,9 @@ char *LP_forwardhex(int32_t pubsock,bits256 pubkey,char *hexstr)
if ( (argjson= cJSON_Parse((char *)data)) != 0 )
{
reqjson = LP_dereference(argjson,"forward");
if ( pubsock < 0 || bits256_cmp(pubkey,LP_mypubkey) == 0 )
retstr = LP_command_process(LP_mypeer != 0 ? LP_mypeer->ipaddr : "127.0.0.1",LP_mypubsock,reqjson,0,0,LP_profitratio - 1.);
else LP_send(pubsock,jprint(reqjson,0),1);
retstr = LP_command_process(LP_mypeer != 0 ? LP_mypeer->ipaddr : "127.0.0.1",LP_mypubsock,reqjson,0,0,LP_profitratio - 1.);
if ( pubsock >= 0 && bits256_cmp(pubkey,LP_mypubkey) != 0 )
LP_send(pubsock,jprint(reqjson,0),1);
free_json(reqjson);
free_json(argjson);
}

Loading…
Cancel
Save