Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
9dd8c3d2ab
  1. 1
      iguana/iguana_bundles.c
  2. 2
      iguana/iguana_unspents.c
  3. 7
      iguana/main.c

1
iguana/iguana_bundles.c

@ -871,7 +871,6 @@ int32_t iguana_bundleiters(struct iguana_info *coin,struct OS_memspace *mem,stru
iguana_bundlehdr(coin,bp,starti);
else if ( bp->emitfinish != 0 )
{
bp->nexttime += 10;
if ( bp->emitfinish > 1 )
{
if ( (retval= iguana_bundlefinish(coin,bp)) > 0 )

2
iguana/iguana_unspents.c

@ -1427,7 +1427,7 @@ int32_t iguana_balancecalc(struct iguana_info *coin,struct iguana_bundle *bp,int
iguana_validateQ(coin,bp);
return(flag);
}
bp->nexttime = (uint32_t)time(NULL) + 1 + cbrt(bp->hdrsi);
bp->nexttime = (uint32_t)time(NULL) + 1;// + cbrt(bp->hdrsi);
if ( bp != 0 && coin != 0 && (bp->hdrsi == 0 || (prevbp= coin->bundles[bp->hdrsi-1]) != 0) )
{
#ifdef IGUANA_SERIALIZE_BALANCEGEN

7
iguana/main.c

@ -363,8 +363,11 @@ void mainloop(struct supernet_info *myinfo)
flag++;
if ( (ptr= queue_dequeue(&balancesQ,0)) != 0 )
{
if ( ptr->coin != coin || (bp= ptr->bp) == 0 || time(NULL) < bp->nexttime )
bp = ptr->bp;
if ( ptr->coin != coin || bp == 0 || time(NULL) < bp->nexttime )
{
if ( bp != 0 )
printf("skip.%d lag.%ld\n",bp->hdrsi,bp->nexttime-time(NULL));
queue_enqueue("balanceQ",&balancesQ,&ptr->DL,0);
continue;
}
@ -412,7 +415,7 @@ void mainloop(struct supernet_info *myinfo)
iguana_jsonQ();
pangea_queues(SuperNET_MYINFO(0));
if ( flag == 0 )
usleep(1000000);
usleep(50000);
}
}

Loading…
Cancel
Save