Browse Source

Test

etomic
jl777 8 years ago
parent
commit
fa835a6f32
  1. 2
      iguana/exchanges/LP_include.h
  2. 4
      iguana/exchanges/LP_network.c

2
iguana/exchanges/LP_include.h

@ -28,7 +28,7 @@
#define LP_MAXPUBKEY_ERRORS 3
#define PSOCK_KEEPALIVE 3600
#define MAINLOOP_PERSEC 10
#define MAINLOOP_PERSEC 100
#define MAX_PSOCK_PORT 60000
#define MIN_PSOCK_PORT 10000
#define LP_MEMPOOL_TIMEINCR 10

4
iguana/exchanges/LP_network.c

@ -128,7 +128,7 @@ void queue_loop(void *ignore)
else flag = 1;
}
}
else if ( time(NULL) > ptr->starttime+3 )
else if ( time(NULL) > ptr->starttime+13 )
{
LP_crc32find(&duplicate,-1,ptr->crc32);
if ( duplicate > 0 )
@ -259,7 +259,7 @@ void LP_broadcast_message(int32_t pubsock,char *base,char *rel,bits256 destpub25
msg = (void *)jprint(argjson,0);
msglen = (int32_t)strlen((char *)msg) + 1;
crc32 = calc_crc32(0,&msg[2],msglen - 2);
printf("CRC32.%u (%s)\n",crc32,(char *)msg);
//printf("CRC32.%u (%s)\n",crc32,(char *)msg);
//jdelete(argjson,"method");
//jaddstr(argjson,"method","broadcast");
//msg = (void *)jprint(argjson,0);

Loading…
Cancel
Save