Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
9ad2c28b31
  1. 2
      iguana/iguana777.c
  2. 1
      iguana/iguana_bundles.c
  3. 6
      iguana/iguana_unspents.c

2
iguana/iguana777.c

@ -479,6 +479,8 @@ void iguana_helper(void *arg)
n = queue_size(&bundlesQ);
for (iter=0; iter<n; iter++)
{
if ( helperid >= n )
break;
if ( (ptr= queue_dequeue(&bundlesQ,0)) != 0 )
{
idle = 0;

1
iguana/iguana_bundles.c

@ -955,7 +955,6 @@ int32_t iguana_bundlefinalize(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 lag)
{
int32_t range,starti,lasti,retval=0,max,counter = 0; struct iguana_bundle *currentbp,*lastbp;
//serialized[512],
if ( coin->started == 0 || coin->active == 0 )
{
printf("%s not ready yet\n",coin->symbol);

6
iguana/iguana_unspents.c

@ -1062,7 +1062,7 @@ int32_t iguana_spendvectors(struct iguana_info *coin,struct iguana_bundle *bp,st
{
if ( bp->tmpspends != ramchain->Xspendinds )
{
printf("spendvectors: unexpected tmpspends? or RT [%d] numtmpspends.%d vs emit.%d\n",bp->hdrsi,bp->numtmpspends,emit);
//printf("spendvectors: unexpected tmpspends? or RT [%d] numtmpspends.%d vs emit.%d\n",bp->hdrsi,bp->numtmpspends,emit);
bp->tmpspends = myrealloc('x',bp->tmpspends,sizeof(*ptr)*bp->numtmpspends,sizeof(*ptr)*(bp->numtmpspends+emit));
memcpy(&bp->tmpspends[bp->numtmpspends],ptr,sizeof(*ptr)*emit);
bp->numtmpspends += emit;
@ -1751,10 +1751,10 @@ void iguana_RTspendvectors(struct iguana_info *coin,struct iguana_bundle *bp)
}
else
{
printf("spendvectors calculated to %d\n",coin->RTheight);
//printf("spendvectors calculated to %d\n",coin->RTheight);
bp->converted = 0;
iguana_convert(coin,bp,1);
printf("spendvectors converted to %d\n",coin->RTheight);
//printf("spendvectors converted to %d\n",coin->RTheight);
iguana_balancegen(coin,0,bp,coin->RTstarti,coin->RTheight-1);
printf("iguana_balancegen [%d] (%d to %d)\n",bp->hdrsi,coin->RTstarti,(coin->RTheight-1)%bp->n);
coin->RTstarti = (coin->RTheight % bp->n);

Loading…
Cancel
Save