diff --git a/iguana/iguana_blocks.c b/iguana/iguana_blocks.c index fc7fb096d..1ff3b7d5d 100755 --- a/iguana/iguana_blocks.c +++ b/iguana/iguana_blocks.c @@ -391,9 +391,9 @@ struct iguana_block *_iguana_chainlink(struct iguana_info *coin,struct iguana_bl } if ( coin->started != 0 && (block->height % coin->chain->bundlesize) == coin->minconfirms && (block->height > coin->longestchain-coin->chain->bundlesize*2 || ((block->height / coin->chain->bundlesize) % 10) == 9) ) { - printf("savehdrs.[%d] ht.%d\n",bp->hdrsi,block->height); + //printf("savehdrs.[%d] ht.%d\n",bp->hdrsi,block->height); iguana_savehdrs(coin); - printf("done savehdrs.%d\n",bp->hdrsi); + //printf("done savehdrs.%d\n",bp->hdrsi); } } } diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index 1c0dfee8d..6fcb03b9c 100755 --- a/iguana/iguana_bundles.c +++ b/iguana/iguana_bundles.c @@ -1057,7 +1057,7 @@ void iguana_bundlestats(struct iguana_info *coin,char *str,int32_t lag) { if ( firstgap == 0 && bp->numsaved < bp->n && bp->numcached < bp->n && (bp->emitfinish == 0 || bp->n < coin->chain->bundlesize) ) { - //printf("firstgap <- [%d] emit.%u bp->n.%d\n",bp->hdrsi,bp->emitfinish,bp->n); + printf("firstgap <- [%d] emit.%u bp->n.%d numsaved.%d numcached.%d numhashes.%d\n",bp->hdrsi,bp->emitfinish,bp->n,bp->numsaved,bp->numcached,bp->numhashes); firstgap = bp; } if ( bp->emitfinish == 0 ) diff --git a/iguana/iguana_peers.c b/iguana/iguana_peers.c index bcc43c5f9..4f50ce5a0 100755 --- a/iguana/iguana_peers.c +++ b/iguana/iguana_peers.c @@ -813,7 +813,7 @@ uint32_t iguana_possible_peer(struct iguana_info *coin,char *ipaddr) printf("error updating status for (%s) ind.%d\n",ipaddr,iA->hh.itemind); iguana_iAddriterator(coin,iA); } else printf("ignore.(%s) lastconnect.%u lastkilled.%u numconnects.%d\n",ipaddr,iA->lastconnect,iA->lastkilled,iA->numconnects); - } else printf("skip.(%s) ind.%d status.%d\n",ipaddr,iA->hh.itemind,iA->status); + } //else printf("skip.(%s) ind.%d status.%d\n",ipaddr,iA->hh.itemind,iA->status); } else printf("cant find (%s) which should have been created\n",ipaddr); } else printf("reject ipaddr.(%s)\n",ipaddr); } diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index 9af2aca39..6304a3262 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -587,7 +587,7 @@ int32_t iguana_bundlehashadd(struct iguana_info *coin,struct iguana_bundle *bp,i iguana_bundlehash2add(coin,0,bp,bundlei,block->RO.hash2); if ( bp->emitfinish == 0 ) { - block->fpos = -1; + //block->fpos = -1; if ( 0 && iguana_ramchainfile(coin,0,&blockR,bp,bundlei,block) == 0 ) { size = sizeof(blockR); @@ -642,9 +642,8 @@ struct iguana_bundle *iguana_bundleset(struct iguana_info *coin,struct iguana_bl { if ( iguana_bundlehashadd(coin,bp,bundlei,block) < 0 ) { - if ( block->issued == 0 ) + if ( bp->emitfinish == 0 && block->issued == 0 ) iguana_blockQ("bundleset",coin,bp,bundlei,block->RO.hash2,coin->current == 0 || bp->hdrsi <= coin->current->hdrsi+coin->MAXBUNDLES); - //iguana_blockunmark(coin,block,bp,bundlei,0); } //fprintf(stderr,"bundle found %d:%d\n",bp->hdrsi,bundlei); //printf("bundlehashadd set.%d\n",bundlei);