Browse Source

Test

etomic
jl777 8 years ago
parent
commit
017a6db5c2
  1. 1
      iguana/iguana_ramchain.c
  2. 7
      iguana/iguana_tx.c
  3. 4
      iguana/m_LP

1
iguana/iguana_ramchain.c

@ -2176,7 +2176,6 @@ int32_t iguana_bundlefiles(struct iguana_info *coin,uint32_t *ipbits,void **ptrs
void iguana_bundlemapfree(struct iguana_info *coin,struct OS_memspace *mem,struct OS_memspace *hashmem,uint32_t *ipbits,void **ptrs,long *filesizes,int32_t num,struct iguana_ramchain *R,int32_t starti,int32_t endi)
{
int32_t j,n = (endi - starti + 1);
sleep(3);
for (j=0; j<num; j++)
if ( ptrs[j] != 0 && filesizes[j] != 0 )
{

7
iguana/iguana_tx.c

@ -27,7 +27,7 @@ int32_t iguana_scriptdata(struct iguana_info *coin,uint8_t *scriptspace,uint64_t
int32_t iguana_scriptdata(struct iguana_info *coin, uint8_t *scriptspace, long fileptr[2], char *fname, uint64_t scriptpos, int32_t scriptlen)
#endif
{
FILE *fp; long err; int32_t retval = scriptlen;
FILE *fp; long err; uint8_t *ptr; int32_t i,retval = scriptlen;
#ifndef __PNACL__
if ( scriptpos < 0xffffffff )
{
@ -41,7 +41,10 @@ int32_t iguana_scriptdata(struct iguana_info *coin, uint8_t *scriptspace, long f
{
if ( (scriptpos + scriptlen) <= fileptr[1] )
{
memcpy(scriptspace,(void *)(fileptr[0] + (uint32_t)scriptpos),scriptlen);
ptr = (void *)(fileptr[0] + (uint32_t)scriptpos);
//memcpy(scriptspace,ptr,scriptlen);
for (i=0; i<scriptlen; i++)
scriptspace[i] = ptr[i];
return(retval);
}
else if ( (0) )

4
iguana/m_LP

@ -4,6 +4,6 @@ rm -f ../agents/iguana *.o
git pull
cd secp256k1; ./m_unix; cd ..
cd ../crypto777; ./m_LP; cd ../iguana
gcc -g -Wno-deprecated -c -O2 -DLIQUIDITY_PROVIDER=1 *.c ../basilisk/basilisk.c ../gecko/gecko.c ../datachain/datachain.c
gcc -g -Wno-deprecated -c -DLIQUIDITY_PROVIDER=1 main.c iguana777.c iguana_bundles.c ../basilisk/basilisk.c iguana_ramchain.c
gcc -g -Wno-deprecated -c -DLIQUIDITY_PROVIDER=1 *.c ../basilisk/basilisk.c ../gecko/gecko.c ../datachain/datachain.c
#gcc -g -Wno-deprecated -c -DLIQUIDITY_PROVIDER=1 main.c iguana777.c iguana_bundles.c ../basilisk/basilisk.c iguana_ramchain.c
gcc -g -o ../agents/iguana *.o ../agents/libcrypto777.a /usr/local/lib/libnanomsg.so -lcurl -lssl -lcrypto -lpthread -lz -lm

Loading…
Cancel
Save