Browse Source

Test

etomic
jl777 8 years ago
parent
commit
989e7b7c86
  1. 2
      iguana/exchanges/LP_nativeDEX.c
  2. 2
      iguana/exchanges/LP_remember.c
  3. 1
      iguana/exchanges/LP_scan.c

2
iguana/exchanges/LP_nativeDEX.c

@ -336,7 +336,7 @@ int32_t LP_mainloop_iter(void *ctx,char *myipaddr,struct LP_peerinfo *mypeer,int
HASH_ITER(hh,LP_coins,coin,ctmp) // firstrefht,firstscanht,lastscanht
{
cJSON *obj; int32_t height; bits256 zero;
printf("%s ref.%d scan.%d to %d, longest.%d\n",coin->symbol,coin->firstrefht,coin->firstscanht,coin->lastscanht,coin->longestchain);
//printf("%s ref.%d scan.%d to %d, longest.%d\n",coin->symbol,coin->firstrefht,coin->firstscanht,coin->lastscanht,coin->longestchain);
memset(zero.bytes,0,sizeof(zero));
if ( time(NULL) > coin->lastgetinfo+LP_GETINFO_INCR )
{

2
iguana/exchanges/LP_remember.c

@ -542,7 +542,7 @@ cJSON *basilisk_remember(int64_t *KMDtotals,int64_t *BTCtotals,uint32_t requesti
{
if ( coin->firstrefht == 0 || ht < coin->firstrefht )
coin->firstrefht = ht;
} else printf("coin.%p ht.%d\n",coin,ht);
}
if ( bits256_nonz(checktxid) == 0 )
checktxid = jbits256(sentobj,"hash");
if ( bits256_cmp(checktxid,txid) == 0 )

1
iguana/exchanges/LP_scan.c

@ -58,6 +58,7 @@ int32_t LP_txheight(uint32_t *timestampp,uint32_t *blocktimep,struct iguana_info
if ( bits256_nonz(blockhash) != 0 && (blockobj= LP_getblock(coin->symbol,blockhash)) != 0 )
{
height = jint(blockobj,"height");
printf("LP_txheight.%d\n",height);
free_json(blockobj);
} else printf("LP_txheight error (%s)\n",jprint(txobj,0));
return(height);

Loading…
Cancel
Save