From 28045b5e02d78277f306f7a23b599598607a1bec Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 18 Sep 2016 19:25:41 -0300 Subject: [PATCH] test --- iguana/iguana777.c | 2 +- iguana/iguana_bundles.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/iguana/iguana777.c b/iguana/iguana777.c index c160cf0ed..975a3690f 100755 --- a/iguana/iguana777.c +++ b/iguana/iguana777.c @@ -1048,7 +1048,7 @@ struct iguana_info *iguana_setcoin(char *symbol,void *launched,int32_t maxpeers, if ( (coin->polltimeout= juint(json,"poll")) <= 0 ) coin->polltimeout = IGUANA_DEFAULT_POLLTIMEOUT; coin->active = juint(json,"active"); - if ( (coin->minconfirms = minconfirms) == 0 ) + if ( (coin->minconfirms= minconfirms) == 0 ) coin->minconfirms = (strcmp(symbol,"BTC") == 0) ? 3 : 10; if ( coin->chain == 0 && (coin->chain= iguana_createchain(json)) == 0 ) { diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index 929c3eadc..0348dd278 100755 --- a/iguana/iguana_bundles.c +++ b/iguana/iguana_bundles.c @@ -206,7 +206,9 @@ int32_t iguana_bundlehash2add(struct iguana_info *coin,struct iguana_block **blo *blockp = 0; if ( bp == 0 || bits256_nonz(hash2) == 0 ) { - printf("iguana_bundlehash2add null hash2\n"); + static uint32_t counter; + if ( counter++ < 100 ) + printf("iguana_bundlehash2add null hash2 bp.%p\n",bp); return(-1111); } if ( bits256_nonz(hash2) != 0 && (block= iguana_blockhashset("bundlehash2add",coin,-1,hash2,1)) != 0 )