Browse Source

Test

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

2
iguana/exchanges/LP_include.h

@ -24,7 +24,7 @@
#define LP_MAJOR_VERSION "0"
#define LP_MINOR_VERSION "1"
#define LP_BUILD_NUMBER "15096"
#define LP_BARTERDEX_VERSION 2
#define LP_BARTERDEX_VERSION 1
#define LP_MAGICBITS 8
#ifdef FROM_JS

4
iguana/exchanges/LP_network.c

@ -204,8 +204,8 @@ int32_t LP_magic_check(uint8_t *msg,int32_t recvlen,char *remoteaddr)
vcalc_sha256(0,hash.bytes,msg,recvlen);
memcpy(magic.bytes,&msg[recvlen],sizeof(magic));
val = _LP_magic_check(hash,magic);
//if ( val != LP_BARTERDEX_VERSION )
// printf("magicval = %x from %s\n",val,remoteaddr);
if ( val != LP_BARTERDEX_VERSION )
printf("magicval = %x from %s\n",val,remoteaddr);
return(val == LP_BARTERDEX_VERSION);
}
return(-1);

Loading…
Cancel
Save