|
@ -606,7 +606,7 @@ cJSON *electrum_address_listunspent(char *symbol,struct electrum_info *ep,cJSON |
|
|
//LP_postutxos(coin->symbol,addr);
|
|
|
//LP_postutxos(coin->symbol,addr);
|
|
|
updatedflag = 1; |
|
|
updatedflag = 1; |
|
|
} |
|
|
} |
|
|
if ( strcmp(addr,coin->smartaddr) == 0 ) |
|
|
//if ( strcmp(addr,coin->smartaddr) == 0 )
|
|
|
{ |
|
|
{ |
|
|
retstr = jprint(retjson,0); |
|
|
retstr = jprint(retjson,0); |
|
|
LP_unspents_cache(coin->symbol,coin->smartaddr,retstr,1); |
|
|
LP_unspents_cache(coin->symbol,coin->smartaddr,retstr,1); |
|
@ -627,7 +627,7 @@ cJSON *electrum_address_listunspent(char *symbol,struct electrum_info *ep,cJSON |
|
|
} |
|
|
} |
|
|
if ( retjson == 0 ) |
|
|
if ( retjson == 0 ) |
|
|
{ |
|
|
{ |
|
|
if ( strcmp(addr,coin->smartaddr) == 0 && (retstr= LP_unspents_filestr(symbol,coin->smartaddr)) != 0 ) |
|
|
if ( (retstr= LP_unspents_filestr(symbol,coin->smartaddr)) != 0 ) |
|
|
{ |
|
|
{ |
|
|
retjson = cJSON_Parse(retstr); |
|
|
retjson = cJSON_Parse(retstr); |
|
|
free(retstr); |
|
|
free(retstr); |
|
|