jl777 8 years ago
parent
commit
854cfaa5b0
  1. 4
      iguana/iguana_realtime.c
  2. 13
      iguana/iguana_spendvectors.c

4
iguana/iguana_realtime.c

@ -817,8 +817,8 @@ void iguana_RTnewblock(struct supernet_info *myinfo,struct iguana_info *coin,str
}
}
coin->RTheight += i;
if ( coin->RTheight != coin->lastRTheight+1 )
printf("ERROR: ");
//if ( coin->RTheight != coin->lastRTheight+1 )
// printf("ERROR: ");
//printf("%s >= RTnewblock RTheight %d prev %d\n",coin->symbol,coin->RTheight,coin->lastRTheight);
}
else if ( block->height == coin->lastRTheight )

13
iguana/iguana_spendvectors.c

@ -706,6 +706,8 @@ int32_t iguana_volatilesinit(struct supernet_info *myinfo,struct iguana_info *co
if ( fwrite(&crc,1,sizeof(crc),fp) != sizeof(crc) || fwrite(&balancehash,1,sizeof(balancehash),fp) != sizeof(balancehash) || fwrite(&allbundles,1,sizeof(allbundles),fp) != sizeof(allbundles) )
printf("error writing.(%s)\n",crcfname);
fclose(fp);
if ( coin->longestchain < coin->bundlescount*coin->chain->bundlesize )
{
for (i=0; i<coin->bundlescount-1; i++)
{
if ( (bp= coin->bundles[i]) != 0 )
@ -719,6 +721,7 @@ int32_t iguana_volatilesinit(struct supernet_info *myinfo,struct iguana_info *co
printf("%s UTXOGEN spendvectorsaved <- %u\n",coin->symbol,coin->spendvectorsaved);
iguana_utxoaddr_gen(myinfo,coin,(coin->bundlescount - 1) * coin->chain->bundlesize);
}
}
else
{
printf("volatileinit: cant create.(%s)\n",crcfname);
@ -738,17 +741,9 @@ int32_t iguana_volatilesinit(struct supernet_info *myinfo,struct iguana_info *co
iguana_blockzcopy(coin->chain->zcash,(void *)&coin->blocks.hwmchain,block);
}
}
if ( iguana_fastfindinit(coin) == 0 )//&& coin->PREFETCHLAG >= 0 )
if ( iguana_fastfindinit(coin) == 0 )
iguana_fastfindcreate(coin);
/*for (j=0; j<coin->bundlescount; j++)
if ( (bp= coin->bundles[j]) != 0 )
{
iguana_volatilesalloc(coin,&bp->ramchain,1);
iguana_volatilesmap(coin,&bp->ramchain);
}
iguana_update_balances(coin);*/
iguana_datachain_scan(myinfo,coin,CRYPTO777_RMD160);
//iguana_utxoaddr_gen(myinfo,coin,(coin->bundlescount - 1) * coin->chain->bundlesize);*/
printf("end %s volatilesinit\n",coin->symbol);
return(coin->bundlescount);
}

Loading…
Cancel
Save