Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
0036672a80
  1. 4
      iguana/iguana777.c
  2. 2
      iguana/iguana_ramchain.c

4
iguana/iguana777.c

@ -623,7 +623,7 @@ int32_t iguana_coin_mainiter(struct supernet_info *myinfo,struct iguana_info *co
else else
{ {
for (j=0; j<coin->bundlescount; j++) for (j=0; j<coin->bundlescount; j++)
if ( (bp= coin->bundles[j]) != 0 && bp->ramchain.H.data == 0 ) if ( (bp= coin->bundles[j]) != 0 && bp->ramchain.H.data == 0 && bp->queued == 0 )
{ {
if ( iguana_bundleready(myinfo,coin,bp,0) == bp->n ) if ( iguana_bundleready(myinfo,coin,bp,0) == bp->n )
{ {
@ -631,7 +631,7 @@ int32_t iguana_coin_mainiter(struct supernet_info *myinfo,struct iguana_info *co
if ( iguana_bundlefinalize(myinfo,coin,bp,mem,memB) > 0 ) if ( iguana_bundlefinalize(myinfo,coin,bp,mem,memB) > 0 )
continue; continue;
} }
printf("bundleQ.[%d]\n",j); //printf("bundleQ.[%d]\n",j);
iguana_bundleQ(myinfo,coin,bp,1000); iguana_bundleQ(myinfo,coin,bp,1000);
} }
//coin->spendvectorsaved = 1; //coin->spendvectorsaved = 1;

2
iguana/iguana_ramchain.c

@ -2086,7 +2086,7 @@ void iguana_blockunmark(struct iguana_info *coin,struct iguana_block *block,stru
bp->speculativecache[i] = 0; bp->speculativecache[i] = 0;
} }
} }
if ( deletefile != 0 ) if ( deletefile != 0 && block != 0 )
iguana_blockdelete(coin,block->RO.hash2,i); iguana_blockdelete(coin,block->RO.hash2,i);
} }

Loading…
Cancel
Save