Browse Source

Test

etomic
jl777 7 years ago
parent
commit
de1833988c
  1. 3
      iguana/exchanges/LP_nativeDEX.c
  2. 2
      iguana/exchanges/LP_network.c

3
iguana/exchanges/LP_nativeDEX.c

@ -300,8 +300,11 @@ int32_t LP_sock_check(char *typestr,void *ctx,char *myipaddr,int32_t pubsock,int
#endif
double millis = OS_milliseconds();
if ( strlen((char *)ptr)+sizeof(bits256) <= recvlen )
{
if ( LP_magic_check(ptr,recvlen,remoteaddr) <= 0 )
printf("magic check error\n");
recvlen -= sizeof(bits256);
}
if ( (retstr= LP_process_message(ctx,typestr,myipaddr,pubsock,ptr,recvlen,sock)) != 0 )
free(retstr);
if ( Broadcaststr != 0 )

2
iguana/exchanges/LP_network.c

@ -212,7 +212,7 @@ int32_t LP_magic_check(uint8_t *msg,int32_t recvlen,char *remoteaddr)
int32_t LP_crc32find(int32_t *duplicatep,int32_t ind,uint32_t crc32)
{
static uint32_t crcs[1024]; static unsigned long dup,total;
static uint32_t crcs[4096]; static unsigned long dup,total;
int32_t i;
*duplicatep = 0;
if ( ind < 0 )

Loading…
Cancel
Save