|
@ -283,9 +283,19 @@ cJSON *LP_snapshot(struct iguana_info *coin,int32_t height) |
|
|
{ |
|
|
{ |
|
|
if ( (ht= LP_scanblockchain(coin,startht,endht)) < endht ) |
|
|
if ( (ht= LP_scanblockchain(coin,startht,endht)) < endht ) |
|
|
{ |
|
|
{ |
|
|
|
|
|
if ( ht > maxsnapht ) |
|
|
|
|
|
{ |
|
|
|
|
|
maxsnapht = ht; |
|
|
|
|
|
printf("maxsnapht.%d for %s\n",maxsnapht,coin->symbol); |
|
|
|
|
|
} |
|
|
sleep(10); |
|
|
sleep(10); |
|
|
if ( (ht= LP_scanblockchain(coin,startht,endht)) < endht ) |
|
|
if ( (ht= LP_scanblockchain(coin,startht,endht)) < endht ) |
|
|
{ |
|
|
{ |
|
|
|
|
|
if ( ht > maxsnapht ) |
|
|
|
|
|
{ |
|
|
|
|
|
maxsnapht = ht; |
|
|
|
|
|
printf("maxsnapht.%d for %s\n",maxsnapht,coin->symbol); |
|
|
|
|
|
} |
|
|
jaddstr(retjson,"error","blockchain scan error"); |
|
|
jaddstr(retjson,"error","blockchain scan error"); |
|
|
return(retjson); |
|
|
return(retjson); |
|
|
} |
|
|
} |
|
|