Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
f1aef9c63c
  1. 1
      iguana/iguana777.c
  2. 5
      iguana/iguana_unspents.c

1
iguana/iguana777.c

@ -536,6 +536,7 @@ int32_t iguana_utxogen(struct supernet_info *myinfo,struct iguana_info *coin,int
coin->spendvectorsaved = (uint32_t)time(NULL); coin->spendvectorsaved = (uint32_t)time(NULL);
coin->spendvalidated = 0; coin->spendvalidated = 0;
printf("%s UTXOGEN spendvectorsaved <- %u\n",coin->symbol,coin->spendvectorsaved); printf("%s UTXOGEN spendvectorsaved <- %u\n",coin->symbol,coin->spendvectorsaved);
if ( iguana_utxoaddr_gen(myinfo,coin,(coin->bundlescount - 1) * coin->chain->bundlesize) < 0 )
iguana_utxoaddr_gen(myinfo,coin,(coin->bundlescount - 1) * coin->chain->bundlesize); iguana_utxoaddr_gen(myinfo,coin,(coin->bundlescount - 1) * coin->chain->bundlesize);
} }
else else

5
iguana/iguana_unspents.c

@ -1311,14 +1311,17 @@ continue;
OS_removefile(fname,0); OS_removefile(fname,0);
OS_removefile(fname2,0); OS_removefile(fname2,0);
} }
else
{
coin->RTheight = height; coin->RTheight = height;
if ( (block= iguana_blockfind("utxogen",coin,coin->blocks.hwmchain.RO.hash2)) != 0 ) if ( (block= iguana_blockfind("utxogen",coin,coin->blocks.hwmchain.RO.hash2)) != 0 )
iguana_RTnewblock(coin,block); iguana_RTnewblock(coin,block);
return(coin->histbalance); return(coin->histbalance);
} }
} }
}
free(counts); free(counts);
return(0.); return(-1.);
} }
void iguana_utxoaddrs_purge(struct iguana_info *coin) void iguana_utxoaddrs_purge(struct iguana_info *coin)

Loading…
Cancel
Save