|
|
@ -842,7 +842,7 @@ int32_t iguana_bundlefinish(struct iguana_info *coin,struct iguana_bundle *bp) |
|
|
|
int32_t iguana_bundleiters(struct iguana_info *coin,struct OS_memspace *mem,struct OS_memspace *memB,struct iguana_bundle *bp,int32_t timelimit) |
|
|
|
{ |
|
|
|
int32_t range,starti,lasti,i,n,len,retval=0,max,counter = 0; struct iguana_block *block; struct iguana_bundle *currentbp,*lastbp; uint8_t serialized[512]; struct iguana_peer *addr; long lag; struct iguana_blockreq *breq; |
|
|
|
if ( coin->started == 0 ) |
|
|
|
if ( coin->started == 0 || coin->active == 0 ) |
|
|
|
{ |
|
|
|
printf("%s not ready yet\n",coin->symbol); |
|
|
|
bp->nexttime = (uint32_t)time(NULL) + 3; |
|
|
@ -875,7 +875,7 @@ int32_t iguana_bundleiters(struct iguana_info *coin,struct OS_memspace *mem,stru |
|
|
|
{ |
|
|
|
if ( (retval= iguana_bundlefinish(coin,bp)) > 0 ) |
|
|
|
{ |
|
|
|
printf("moved to balancesQ.%d bundleiters.%d\n",bp->hdrsi,bp->bundleheight); |
|
|
|
//printf("moved to balancesQ.%d bundleiters.%d\n",bp->hdrsi,bp->bundleheight);
|
|
|
|
bp->queued = 0; |
|
|
|
return(0); |
|
|
|
} //else printf("finish incomplete.%d\n",bp->hdrsi);
|
|
|
|