Browse Source

Test

etomic
jl777 7 years ago
parent
commit
050700fcbd
  1. 4
      iguana/exchanges/LP_nativeDEX.c
  2. 2
      iguana/exchanges/LP_prices.c

4
iguana/exchanges/LP_nativeDEX.c

@ -779,9 +779,6 @@ void LP_reserved_msgs(void *ignore)
{
portable_mutex_lock(&LP_reservedmutex);
num_Reserved_msgs--;
#ifdef FROM_JS
printf("%d BROADCASTING RESERVED.(%s)\n",num_Reserved_msgs,Reserved_msgs[num_Reserved_msgs]);
#endif
LP_broadcast_message(LP_mypubsock,"","",zero,Reserved_msgs[num_Reserved_msgs]);
Reserved_msgs[num_Reserved_msgs] = 0;
portable_mutex_unlock(&LP_reservedmutex);
@ -806,6 +803,7 @@ int32_t LP_reserved_msg(char *base,char *rel,bits256 pubkey,char *msg)
portable_mutex_unlock(&LP_reservedmutex);
#else
LP_broadcast_message(LP_mypubsock,base,rel,pubkey,msg);
printf("reserved_msg.(%s)\n",msg);
#endif
if ( num_Reserved_msgs > max_Reserved_msgs )
{

2
iguana/exchanges/LP_prices.c

@ -685,7 +685,7 @@ void LP_pubkeys_query()
reqjson = cJSON_CreateObject();
jaddstr(reqjson,"method","wantnotify");
jaddbits256(reqjson,"pub",pubp->pubkey);
//printf("%s\n",jprint(reqjson,0));
printf("LP_pubkeys_query %s\n",jprint(reqjson,0));
LP_reserved_msg("","",zero,jprint(reqjson,1));
}
}

Loading…
Cancel
Save