Browse Source

Test

etomic
jl777 8 years ago
parent
commit
34c4def24a
  1. 4
      iguana/exchanges/LP_scan.c
  2. 2
      iguana/exchanges/snapshot

4
iguana/exchanges/LP_scan.c

@ -204,11 +204,15 @@ cJSON *LP_snapshot(struct iguana_info *coin,int32_t height)
{
struct LP_transaction *tx,*tmp; int32_t i,ht; uint64_t balance=0; cJSON *retjson,*array;
for (ht=1; ht<height; ht++)
{
if ( LP_blockinit(coin,ht) < 0 )
{
printf("error loading block.%d of %d\n",ht,height);
return(0);
}
if ( (ht % 1000) == 0 )
fprintf(stderr,"%.1f%% ",100. * (double)ht/height);
}
portable_mutex_lock(&coin->txmutex);
HASH_ITER(hh,coin->transactions,tx,tmp)
{

2
iguana/exchanges/snapshot

@ -1,2 +1,2 @@
source userpass
curl --url "http://127.0.0.1:7779" --data "{\"userpass\":\"$userpass\",\"method\":\"snapshot\",\"coin\":\"KMD\",\:height\":2000}"
curl --url "http://127.0.0.1:7779" --data "{\"userpass\":\"$userpass\",\"method\":\"snapshot\",\"coin\":\"KMD\",\"height\":2000}"

Loading…
Cancel
Save