|
|
@ -713,6 +713,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 ( strcmp("BTC",coin->symbol) == 0 ) |
|
|
|
{ |
|
|
|
if ( (coin->longestchain+coin->chain->minconfirms)/coin->chain->bundlesize < coin->bundlescount*coin->chain->bundlesize ) |
|
|
|
{ |
|
|
|
for (i=0; i<coin->bundlescount-1; i++) |
|
|
@ -729,6 +731,7 @@ int32_t iguana_volatilesinit(struct supernet_info *myinfo,struct iguana_info *co |
|
|
|
iguana_utxoaddr_gen(myinfo,coin,(coin->bundlescount - 1) * coin->chain->bundlesize); |
|
|
|
} else printf("(coin->longestchain+coin->chain->minconfirms)/coin->chain->bundlesize %d < %d coin->bundlescount*coin->chain->bundlesize\n",(coin->longestchain+coin->chain->minconfirms)/coin->chain->bundlesize,coin->bundlescount*coin->chain->bundlesize); |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
printf("volatileinit: cant create.(%s)\n",crcfname); |
|
|
|