|
|
@ -385,16 +385,16 @@ cJSON *kmd_gettxin(struct iguana_info *coin,bits256 txid,int32_t vout) |
|
|
|
|
|
|
|
cJSON *kmd_listaddress(struct iguana_info *coin,char *coinaddr,int32_t mode) |
|
|
|
{ |
|
|
|
struct kmd_addresshh *addr; struct kmd_transactionhh *ptr,*spent,*prev=0; uint8_t type_rmd160[21]; int32_t i,height; cJSON *array = cJSON_CreateArray(); |
|
|
|
if ( time(NULL) > coin->kmd_lasttime+30 ) |
|
|
|
struct kmd_addresshh *addr; struct kmd_transactionhh *ptr,*spent,*prev=0; uint8_t type_rmd160[21]; int32_t i; cJSON *array = cJSON_CreateArray(); |
|
|
|
/*if ( time(NULL) > coin->kmd_lasttime+30 )
|
|
|
|
{ |
|
|
|
coin->kmd_lasttime = (uint32_t)time(NULL); |
|
|
|
if ( (height= kmd_height(coin)) > coin->kmd_height+KMD_EXPLORER_LAG ) |
|
|
|
if ( (height= kmd_height(coin)) > coin->kmd_height+KMD_EXPLORER_LAG*2 ) |
|
|
|
{ |
|
|
|
printf("height.%d > kmd_height.%d\n",height,coin->kmd_height); |
|
|
|
return(cJSON_Parse("[]")); |
|
|
|
} |
|
|
|
} |
|
|
|
}*/ |
|
|
|
bitcoin_addr2rmd160(&type_rmd160[0],&type_rmd160[1],coinaddr); |
|
|
|
if ( (addr= _kmd_address(coin,type_rmd160)) != 0 && (ptr= addr->prev) != 0 && ptr->tx != 0 ) |
|
|
|
{ |
|
|
|