diff --git a/iguana/iguana777.c b/iguana/iguana777.c index 8882b67fb..b03265fa4 100755 --- a/iguana/iguana777.c +++ b/iguana/iguana777.c @@ -518,7 +518,7 @@ int32_t iguana_utxogen(struct supernet_info *myinfo,struct iguana_info *coin,int { printf("validate.[%d] error. refresh page or restart iguana and it should regenerate\n",bp->hdrsi); exit(-1); - } else printf("%s helperid.%d validated.[%d]\n",coin->symbol,helperid,hdrsi); + } // else printf("%s helperid.%d validated.[%d]\n",coin->symbol,helperid,hdrsi); } } while ( iguana_validated(coin) < max || iguana_utxofinished(coin) < max || iguana_balancefinished(coin) < max ) diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index e195b22ff..1f1bf20cd 100755 --- a/iguana/iguana_bundles.c +++ b/iguana/iguana_bundles.c @@ -210,7 +210,6 @@ int32_t iguana_bundlehash2add(struct iguana_info *coin,struct iguana_block **blo { if ( bp->blocks[bundlei] != 0 && bp->blocks[bundlei] != block ) { - printf("bp.[%d]->blocks[%d] mismatch %p != %p\n",bp->hdrsi,bundlei,bp->blocks[bundlei],block); if ( block->mainchain != 0 && (block->height % coin->chain->bundlesize) == bundlei && (block->height / coin->chain->bundlesize) == bp->hdrsi ) { printf("bundle block override [%d:%d]\n",bp->hdrsi,bundlei); @@ -219,6 +218,7 @@ int32_t iguana_bundlehash2add(struct iguana_info *coin,struct iguana_block **blo } else { + printf("bp.[%d]->blocks[%d] mismatch %p != %p\n",bp->hdrsi,bundlei,bp->blocks[bundlei],block); iguana_blockunmark(coin,block,bp,bundlei,1); bp->blocks[bundlei] = 0; return(-1); diff --git a/iguana/iguana_peers.c b/iguana/iguana_peers.c index 9d77cf614..f9eb79e7e 100755 --- a/iguana/iguana_peers.c +++ b/iguana/iguana_peers.c @@ -703,6 +703,12 @@ void iguana_startconnection(void *arg) printf("iguana_startconnection.%s:%04x mismatched coin.%p (%s) vs (%s)\n",addr->ipaddr,coin->chain->portp2p,coin,coin->symbol,addr->coinname); return; } + if ( strcmp("85.25.217.233",addr->ipaddr) == 0 ) + { + printf("temp blacklist %s\n",addr->ipaddr); + iguana_iAkill(coin,addr,1); + return; + } //printf("iguana_startconnection.%s:%04x (%s)\n",addr->ipaddr,coin->chain->portp2p,addr->coinstr); if ( strcmp("127.0.0.1",addr->ipaddr) == 0 )//&& (coin->myservices & NODE_NETWORK) != 0 ) { diff --git a/iguana/iguana_realtime.c b/iguana/iguana_realtime.c index 7a18d5ea8..0786764e9 100755 --- a/iguana/iguana_realtime.c +++ b/iguana/iguana_realtime.c @@ -148,7 +148,8 @@ void iguana_RThdrs(struct iguana_info *coin,struct iguana_bundle *bp,int32_t num for (i=0; ipeers->numranked; i++) { queue_enqueue("hdrsQ",&coin->hdrsQ,queueitem(bits256_str(str,bp->hashes[0])),1); - queue_enqueue("hdrsQ",&coin->hdrsQ,queueitem(bits256_str(str,coin->blocks.hwmchain.RO.hash2)),1); + if ( coin->chain->hasheaders == 0 ) + queue_enqueue("hdrsQ",&coin->hdrsQ,queueitem(bits256_str(str,coin->blocks.hwmchain.RO.hash2)),1); if ( (addr= coin->peers->ranked[i]) != 0 && addr->usock >= 0 && addr->dead == 0 && datalen > 0 ) { iguana_send(coin,addr,serialized,datalen); @@ -286,7 +287,7 @@ int32_t iguana_realtime_update(struct supernet_info *myinfo,struct iguana_info * if ( bits256_cmp(coin->RThash1,bp->hashes[1]) != 0 ) coin->RThash1 = bp->hashes[1]; //bp->lastRT = (uint32_t)time(NULL); - if ( coin->peers != 0 && coin->RTheight <= coin->longestchain-offset && coin->peers->numranked > 0 && time(NULL) > coin->RThdrstime+6 ) + if ( coin->peers != 0 && coin->RTheight <= coin->longestchain-offset && coin->peers->numranked > 0 && time(NULL) > coin->RThdrstime+16 ) { iguana_RThdrs(coin,bp,coin->peers->numranked); coin->RThdrstime = (uint32_t)time(NULL); diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index 3a97c8ec8..76ddbd1ff 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -891,7 +891,7 @@ void iguana_autoextend(struct iguana_info *coin,struct iguana_bundle *bp) { if ( newbp->bundleheight != bp->bundleheight+bp->n ) { - printf("found spurious extra hash for [%d:%d]\n",bp->hdrsi,bp->n); + printf("%d vs %d found spurious extra hash for [%d:%d]\n",newbp->bundleheight,bp->bundleheight,bp->hdrsi,bp->n); memset(&bp->nextbundlehash2,0,sizeof(bp->nextbundlehash2)); return; }