|
|
@ -598,7 +598,7 @@ cJSON *electrum_address_listunspent(char *symbol,struct electrum_info *ep,cJSON |
|
|
|
{ |
|
|
|
if ( jobj(retjson,"error") == 0 && is_cJSON_Array(retjson) != 0 ) |
|
|
|
{ |
|
|
|
if ( electrumflag > 1 ) |
|
|
|
if ( 0 && electrumflag > 1 ) |
|
|
|
printf("%s.%d u.%u/%d t.%ld %s LISTUNSPENT.(%d)\n",coin->symbol,height,ap->unspenttime,ap->unspentheight,time(NULL),addr,(int32_t)strlen(jprint(retjson,0))); |
|
|
|
updatedflag = 0; |
|
|
|
if ( electrum_process_array(coin,ep,addr,retjson,electrumflag) != 0 ) |
|
|
@ -707,7 +707,7 @@ cJSON *_electrum_transaction(char *symbol,struct electrum_info *ep,cJSON **retjs |
|
|
|
{ |
|
|
|
static uint32_t counter; |
|
|
|
if ( counter++ < 3 ) |
|
|
|
printf("rawtransaction too big %d\n",(int32_t)strlen(hexstr)); |
|
|
|
printf("rawtransaction %s %s too big %d\n",coin->symbol,bits256_str(str,txid),(int32_t)strlen(hexstr)); |
|
|
|
free(hexstr); |
|
|
|
free_json(hexjson); |
|
|
|
*retjsonp = cJSON_Parse("{\"error\":\"transaction too big\"}"); |
|
|
|