jl777 7 years ago
parent
commit
748986f3f9
  1. 2
      iguana/exchanges/LP_ordermatch.c
  2. 4
      iguana/exchanges/LP_socket.c
  3. 8
      iguana/exchanges/LP_utxo.c

2
iguana/exchanges/LP_ordermatch.c

@ -755,7 +755,7 @@ int32_t LP_listunspent_both(char *symbol,char *coinaddr)
}
}
}
} else printf("%s coin.%p inactive.%d\n",symbol,coin,coin!=0?coin->inactive:-1);
} //else printf("%s coin.%p inactive.%d\n",symbol,coin,coin!=0?coin->inactive:-1);
return(n);
}

4
iguana/exchanges/LP_socket.c

@ -361,8 +361,8 @@ int32_t electrum_process_array(struct iguana_info *coin,struct electrum_info *ep
}
if ( value != 0 || tx->height > 0 )
flag += LP_address_utxoadd(coin,coinaddr,txid,v,value,tx->height,-1);
printf("v.%d numvouts.%d %.8f (%s)\n",v,tx->numvouts,dstr(tx->outpoints[jint(item,"tx_pos")].value),jprint(item,0));
} else printf("cant find tx\n");
//printf("v.%d numvouts.%d %.8f (%s)\n",v,tx->numvouts,dstr(tx->outpoints[jint(item,"tx_pos")].value),jprint(item,0));
} //else printf("cant find tx\n");
}
}
return(flag);

8
iguana/exchanges/LP_utxo.c

@ -194,7 +194,7 @@ int32_t LP_address_utxoadd(struct iguana_info *coin,char *coinaddr,bits256 txid,
up->spendheight = spendheight, flag |= 4;
if ( up->U.value == 0 && up->U.value != value )
up->U.value = value, flag |= 8;
printf("found >>>>>>>>>> %s %s %s/v%d ht.%d %.8f\n",coin->symbol,coinaddr,bits256_str(str,txid),vout,height,dstr(value));
//printf("found >>>>>>>>>> %s %s %s/v%d ht.%d %.8f\n",coin->symbol,coinaddr,bits256_str(str,txid),vout,height,dstr(value));
break;
}
}
@ -210,10 +210,10 @@ int32_t LP_address_utxoadd(struct iguana_info *coin,char *coinaddr,bits256 txid,
DL_APPEND(ap->utxos,up);
portable_mutex_unlock(&coin->addrmutex);
retval = 1;
if ( height > 0 )
if ( 0 && height > 0 )
printf("ADDRESS_UTXO >>>>>>>>>> %s %s %s/v%d ht.%d %.8f\n",coin->symbol,coinaddr,bits256_str(str,txid),vout,height,dstr(value));
}
} else printf("cant get ap %s %s\n",coin->symbol,coinaddr);
} // else printf("cant get ap %s %s\n",coin->symbol,coinaddr);
//printf("done %s add addr.%s ht.%d\n",coin->symbol,coinaddr,height);
return(retval);
}
@ -464,7 +464,7 @@ cJSON *LP_transactioninit(struct iguana_info *coin,bits256 txid,int32_t iter,cJS
// maybe filter so only addresses we care about are using RAM
if ( iter == 0 && vouts != 0 && (tx= LP_transactionadd(coin,txid,height,numvouts,numvins)) != 0 )
{
printf("create txid %s numvouts.%d numvins.%d\n",bits256_str(str,txid),numvouts,numvins);
//printf("create txid %s numvouts.%d numvins.%d\n",bits256_str(str,txid),numvouts,numvins);
for (i=0; i<numvouts; i++)
{
vout = jitem(vouts,i);

Loading…
Cancel
Save