From 82ae77d607ebc7fbab070e3195ec846700fb2aef Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 21 Sep 2016 06:29:31 -0300 Subject: [PATCH] test --- iguana/iguana_spendvectors.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++) {