Browse Source

Test

etomic
jl777 8 years ago
parent
commit
9087e1e73b
  1. 10
      iguana/exchanges/LP_scan.c

10
iguana/exchanges/LP_scan.c

@ -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);
} }

Loading…
Cancel
Save