diff --git a/iguana/iguana_ramchain.c b/iguana/iguana_ramchain.c index 4b432fc43..000109ebf 100755 --- a/iguana/iguana_ramchain.c +++ b/iguana/iguana_ramchain.c @@ -2384,7 +2384,7 @@ int32_t iguana_ramchain_expandedsave(struct iguana_info *coin,RAMCHAIN_FUNC,stru bits256 firsthash2,lasthash2; int32_t err,bundlei,hdrsi,numblocks,firsti,height,retval= -1; struct iguana_ramchain checkR,*mapchain; char fname[1024],str[65]; FILE *fp; uint32_t scriptspace,scriptoffset,stacksize,izero = 0; uint8_t *destoffset,*srcoffset; - if ( bp->bundleheight == 118000 || bp->bundleheight == 62000 ) + if ( bp->bundleheight == 118000 || bp->bundleheight == 62000 || bp->bundleheight == 148000 ) return(0); firsthash2 = ramchain->H.data->firsthash2, lasthash2 = ramchain->H.data->lasthash2; height = ramchain->height, firsti = ramchain->H.data->firsti, hdrsi = ramchain->H.hdrsi, numblocks = ramchain->numblocks; diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index b3d21fde7..0e4bdefef 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -1031,7 +1031,7 @@ int32_t iguana_reqblocks(struct iguana_info *coin) int32_t hdrsi,lflag,n,bundlei,flag = 0; bits256 hash2; struct iguana_block *next,*block; struct iguana_bundle *bp; if ( queue_size(&coin->priorityQ) == 0 && (bp= coin->current) != 0 && bp->numsaved < bp->n ) { - for (hdrsi=0; hdrsi<8&&coin->current->hdrsi+hdrsibundlescount; hdrsi++) + for (hdrsi=0; hdrsipeers.numranked&&coin->current->hdrsi+hdrsibundlescount; hdrsi++) { if ( (bp= coin->bundles[hdrsi + coin->current->hdrsi]) == 0 ) break; @@ -1050,7 +1050,7 @@ int32_t iguana_reqblocks(struct iguana_info *coin) block->issued = 0; bp->issued[bundlei] = 0;*/ block->issued = (uint32_t)time(NULL); - iguana_sendblockreqPT(coin,coin->peers.ranked[0],bp,bundlei,block->RO.hash2,0); + iguana_sendblockreqPT(coin,coin->peers.ranked[hdrsi],bp,bundlei,block->RO.hash2,0); //iguana_blockQ(coin,bp,bundlei,block->RO.hash2,1); flag++; }