jl777 7 years ago
parent
commit
0734cda9a0
  1. 20
      iguana/exchanges/LP_scan.c

20
iguana/exchanges/LP_scan.c

@ -27,6 +27,7 @@ int32_t LP_blockinit(struct iguana_info *coin,int32_t height)
if ( (txs= jarray(&numtx,blockobj,"tx")) != 0 )
{
for (iter=0; iter<2; iter++)
{
for (i=0; i<numtx; i++)
{
txid = jbits256i(txs,i);
@ -40,23 +41,8 @@ int32_t LP_blockinit(struct iguana_info *coin,int32_t height)
tx->height = height;
}
if ( iter == 1 )
for (j=0; j<10; j++)
{
if (LP_transactioninit(coin,txid,iter,0) == 0 )
break;
printf("%s transaction ht.%d init error.%d, pause\n",bits256_str(str,txid),height,j);
sleep(10);
}
}
else
{
for (j=0; j<10; j++)
{
if (LP_transactioninit(coin,txid,iter,0) == 0 )
break;
printf("%s transaction ht.%d init error.%d, pause\n",bits256_str(str,txid),height,j);
sleep(10);
}
LP_transactioninit(coin,txid,iter,0);
} else LP_transactioninit(coin,txid,iter,0);
}
}
}

Loading…
Cancel
Save