From 4c8334661f092673bd814753b40bf952026364f2 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 11 Mar 2016 02:31:28 -0300 Subject: [PATCH] test --- iguana/iguana777.c | 2 +- iguana/iguana_peers.c | 4 ++-- iguana/iguana_ramchain.c | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/iguana/iguana777.c b/iguana/iguana777.c index db8f1489a..b5c7852c6 100755 --- a/iguana/iguana777.c +++ b/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); } } diff --git a/iguana/iguana_peers.c b/iguana/iguana_peers.c index 771e6e7eb..03f98b18d 100755 --- a/iguana/iguana_peers.c +++ b/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 ) diff --git a/iguana/iguana_ramchain.c b/iguana/iguana_ramchain.c index 24a2a8028..4a9fdc551 100755 --- a/iguana/iguana_ramchain.c +++ b/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 %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 ) {