diff --git a/iguana/iguana_spendvectors.c b/iguana/iguana_spendvectors.c index 9cdbf861d..cb7dca1c4 100755 --- a/iguana/iguana_spendvectors.c +++ b/iguana/iguana_spendvectors.c @@ -713,7 +713,7 @@ 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-coin->chain->minconfirms ) + if ( coin->longestchain <= (coin->bundlescount-1)*coin->chain->bundlesize-coin->chain->minconfirms ) { for (i=0; ibundlescount-1; i++) {