jl777 8 years ago
parent
commit
47aefb5a5c
  1. 6
      iguana/exchanges/LP_scan.c

6
iguana/exchanges/LP_scan.c

@ -21,7 +21,7 @@
int32_t LP_blockinit(struct iguana_info *coin,int32_t height)
{
int32_t i,j,iter,numtx,checkht=-1; cJSON *blockobj,*txs; bits256 txid; struct LP_transaction *tx;
char str[65]; int32_t i,j,iter,numtx,checkht=-1; cJSON *blockobj,*txs; bits256 txid; struct LP_transaction *tx;
if ( (blockobj= LP_blockjson(&checkht,coin->symbol,0,height)) != 0 && checkht == height )
{
if ( (txs= jarray(&numtx,blockobj,"tx")) != 0 )
@ -44,7 +44,7 @@ int32_t LP_blockinit(struct iguana_info *coin,int32_t height)
{
if (LP_transactioninit(coin,txid,iter,0) == 0 )
break;
printf("transaction ht.%d init error.%d, pause\n",height,j);
printf("%s transaction ht.%d init error.%d, pause\n",bits256_str(str,txid),height,j);
sleep(10);
}
}
@ -54,7 +54,7 @@ int32_t LP_blockinit(struct iguana_info *coin,int32_t height)
{
if (LP_transactioninit(coin,txid,iter,0) == 0 )
break;
printf("transaction ht.%d init error.%d, pause\n",height,j);
printf("%s transaction ht.%d init error.%d, pause\n",bits256_str(str,txid),height,j);
sleep(10);
}
}

Loading…
Cancel
Save