jl777 8 years ago
parent
commit
33e725c3f4
  1. 4
      crypto777/iguana_OS.c
  2. 2
      iguana/iguana777.c
  3. 2
      iguana/iguana_bundles.c
  4. 1
      iguana/iguana_recv.c

4
crypto777/iguana_OS.c

@ -261,7 +261,7 @@ void queue_enqueue(char *name,queue_t *queue,struct queueitem *item)//,int32_t o
//struct queueitem *item;
if ( queue->name[0] == 0 && name != 0 && name[0] != 0 )
strcpy(queue->name,name);//,sizeof(queue->name));
fprintf(stderr,"enqueue.(%s) %p\n",queue->name,item);
//fprintf(stderr,"enqueue.(%s) %p\n",queue->name,item);
lock_queue(queue);
//item = (struct queueitem *)((long)origitem - offsetflag*sizeof(struct queueitem));
DL_APPEND(queue->list,item);
@ -276,7 +276,7 @@ void *queue_dequeue(queue_t *queue)//,int32_t offsetflag)
if ( queue->list != 0 )
{
item = queue->list;
printf("queue_dequeue name.(%s) dequeue.%p list.%p\n",queue->name,item,queue->list);
//printf("queue_dequeue name.(%s) dequeue.%p list.%p\n",queue->name,item,queue->list);
DL_DELETE(queue->list,item);
}
portable_mutex_unlock(&queue->mutex);

2
iguana/iguana777.c

@ -1090,7 +1090,7 @@ struct iguana_info *iguana_setcoin(char *symbol,void *launched,int32_t maxpeers,
if ( coin->MAXMEM == 0 )
coin->MAXMEM = IGUANA_DEFAULTRAM;
coin->MAXMEM *= (1024L * 1024 * 1024);
coin->enableCACHE = (strcmp("BTC",coin->symbol) != 0);
coin->enableCACHE = 0;//(strcmp("BTC",coin->symbol) != 0);
if ( jobj(json,"cache") != 0 )
coin->enableCACHE = juint(json,"cache");
if ( (coin->polltimeout= juint(json,"poll")) <= 0 )

2
iguana/iguana_bundles.c

@ -685,7 +685,6 @@ int32_t iguana_bundleissuemissing(struct supernet_info *myinfo,struct iguana_inf
req->bp = bp;
req->height = bp->bundleheight + i;
req->bundlei = i;
printf("priority.%p\n",req);
queue_enqueue("missing",&coin->priorityQ,&req->DL);
bp->issued[i] = 1;
n++;
@ -750,7 +749,6 @@ int32_t iguana_blast(struct iguana_info *coin,struct iguana_peer *addr)
req->bp = bp;
req->height = bp->bundleheight + i;
req->bundlei = i;
printf("priority.%p\n",req);
queue_enqueue("blast",&coin->priorityQ,&req->DL);
}
}

1
iguana/iguana_recv.c

@ -2134,7 +2134,6 @@ int32_t iguana_blockQ(char *argstr,struct iguana_info *coin,struct iguana_bundle
//block->numrequests++;
block->issued = now;
}
printf("%s.%p\n",str,req);
queue_enqueue(str,Q,&req->DL);
return(1);
} else printf("null Q\n");

Loading…
Cancel
Save