diff --git a/iguana/iguana_unspents.c b/iguana/iguana_unspents.c index f5cb92e08..58d874432 100755 --- a/iguana/iguana_unspents.c +++ b/iguana/iguana_unspents.c @@ -494,7 +494,7 @@ int32_t iguana_balancegen(struct iguana_info *coin,struct iguana_bundle *bp,int3 { if ( spendind == nextT[numtxid].firstvin ) { - refheight = bp->bundleheight + numtxid; + refheight = bp->bundleheight++; printf("height.%d firstvin.%d\n",refheight,nextT[numtxid].firstvin); numtxid++; } @@ -585,7 +585,7 @@ int32_t iguana_balancegen(struct iguana_info *coin,struct iguana_bundle *bp,int3 } if ( spendind == nextT[numtxid].firstvin ) { - refheight = bp->bundleheight + numtxid; + refheight = bp->bundleheight++; printf("height.%d firstvin.%d\n",refheight,nextT[numtxid].firstvin); numtxid++; }