Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
4c8334661f
  1. 2
      iguana/iguana777.c
  2. 4
      iguana/iguana_peers.c
  3. 6
      iguana/iguana_ramchain.c

2
iguana/iguana777.c

@ -429,7 +429,7 @@ void iguana_coinloop(void *arg)
}
}
if ( flag == 0 )
usleep((coin->polltimeout+1) * 10);
usleep((coin->polltimeout+1) * 1000);
}
}

4
iguana/iguana_peers.c

@ -1034,8 +1034,8 @@ void iguana_dedicatedloop(struct iguana_info *coin,struct iguana_peer *addr)
usleep(100000);
}
else if ( addr->rank != 1 )
usleep(coin->polltimeout*10 + 1*(rand() % (coin->polltimeout*10)));
else usleep(10);
usleep(coin->polltimeout*10000 + 1*(rand() % (coin->polltimeout*10000)));
else usleep(1000);
} else run >>= 2;
}
if ( flag != 0 )

6
iguana/iguana_ramchain.c

@ -789,11 +789,11 @@ int32_t iguana_metascript(struct iguana_info *coin,RAMCHAIN_FUNC,struct iguana_s
if ( (decodelen= iguana_vinscriptdecode(coin,ramchain,&checkmetalen,_script,&Kspace[ramchain->H.data->scriptspace],Kspace,s)) != vinscriptlen || (vinscript != 0 && memcmp(_script,vinscript,vinscriptlen) != 0) || checkmetalen != metalen )
{
static uint64_t counter;
if ( counter++ < 100 )
//if ( counter++ < 100 )
{
for (i=0; i<decodelen; i++)
printf("%02x",_script[i]);
printf(" decoded\n");
printf(" decoded checklen.%d metalen.%d\n",checkmetalen,metalen);
if ( vinscript != 0 )
{
for (i=0; i<vinscriptlen; i++)
@ -2706,7 +2706,7 @@ int32_t iguana_bundlesaveHT(struct iguana_info *coin,struct OS_memspace *mem,str
printf("bundlesave: stack smashed %d+%d > %d\n",dest->H.scriptoffset,dest->H.stacksize,dest->H.data->scriptspace);
bundlei = -1;
}
//printf("GETCHAR! about to save dest scriptoffset.%d stacksize.%d data scriptspace.%d\n",dest->H.scriptoffset,dest->H.stacksize,dest->H.data->scriptspace), getchar();
printf(" about to save dest scriptoffset.%d stacksize.%d data scriptspace.%d\n",dest->H.scriptoffset,dest->H.stacksize,dest->H.data->scriptspace);
depth--;
if ( bundlei == bp->n && iguana_ramchain_expandedsave(coin,RAMCHAIN_DESTARG,&newchain,&HASHMEM,0,bp) == 0 )
{

Loading…
Cancel
Save