Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
d6a8e3b1b2
  1. 1
      crypto777/iguana_OS.c
  2. 2
      iguana/iguana_bundles.c

1
crypto777/iguana_OS.c

@ -234,6 +234,7 @@ void queue_enqueue(char *name,queue_t *queue,struct queueitem *origitem,int32_t
printf("FATAL type error: queueing empty value\n");//, getchar(); printf("FATAL type error: queueing empty value\n");//, getchar();
return; return;
} }
fprintf(stderr,"enqueue.(%s) %p offset.%d\n",queue->name,origitem,offsetflag);
lock_queue(queue); lock_queue(queue);
item = (struct queueitem *)((long)origitem - offsetflag*sizeof(struct queueitem)); item = (struct queueitem *)((long)origitem - offsetflag*sizeof(struct queueitem));
DL_APPEND(queue->list,item); DL_APPEND(queue->list,item);

2
iguana/iguana_bundles.c

@ -738,7 +738,7 @@ int32_t iguana_bundleiters(struct iguana_info *coin,struct OS_memspace *mem,stru
} }
if ( coin->current == 0 ) if ( coin->current == 0 )
coin->current = coin->bundles[0]; coin->current = coin->bundles[0];
if ( (range= coin->peers.numranked) > coin->MAXBUNDLES ) //if ( (range= coin->peers.numranked) > coin->MAXBUNDLES )
range = coin->MAXBUNDLES; range = coin->MAXBUNDLES;
currentbp = coin->current; currentbp = coin->current;
lastbp = coin->lastpending; lastbp = coin->lastpending;

Loading…
Cancel
Save