jl777 8 years ago
parent
commit
b01ecc1e31
  1. 4
      crypto777/iguana_OS.c
  2. 2
      iguana/iguana_ramchain.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 offset.%d\n",queue->name,origitem,offsetflag);
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/iguana_ramchain.c

@ -1936,8 +1936,6 @@ fpos = 0;
fflush(addr->vinsfp);
}
memset(&R,0,sizeof(R));
//iguana_ramchain_map(struct supernet_info *myinfo,struct iguana_info *coin,char *fname,struct iguana_bundle *bp,int32_t numblocks,struct iguana_ramchain *ramchain,struct OS_memspace *hashmem,uint32_t ipbits,bits256 hash2,bits256 prevhash2,int32_t bundlei,long fpos,int32_t allocextras,int32_t expanded)
char str[65]; printf("myinfo.%p coin.%p addr.%p (%s) fpos.%d\n",myinfo,coin,addr,bits256_str(str,RO.hash2),(uint32_t)fpos);
if ( verifyflag != 0 && (mapchain= iguana_ramchain_map(myinfo,coin,fname,0,1,&R,&addr->HASHMEM,(uint32_t)addr->ipbits,RO.hash2,RO.prev_block,bundlei,fpos,0,0,zcash)) == 0 )
{
printf("delete unverified [%d:%d]\n",bp->hdrsi,bundlei);

Loading…
Cancel
Save