Browse Source

test

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

3
iguana/iguana777.c

@ -536,7 +536,8 @@ 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);
iguana_utxoaddr_gen(myinfo,coin,(coin->bundlescount - 1) * coin->chain->bundlesize); if ( iguana_utxoaddr_gen(myinfo,coin,(coin->bundlescount - 1) * coin->chain->bundlesize) < 0 )
iguana_utxoaddr_gen(myinfo,coin,(coin->bundlescount - 1) * coin->chain->bundlesize);
} }
else else
{ {

13
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);
} }
coin->RTheight = height; else
if ( (block= iguana_blockfind("utxogen",coin,coin->blocks.hwmchain.RO.hash2)) != 0 ) {
iguana_RTnewblock(coin,block); coin->RTheight = height;
return(coin->histbalance); if ( (block= iguana_blockfind("utxogen",coin,coin->blocks.hwmchain.RO.hash2)) != 0 )
iguana_RTnewblock(coin,block);
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