Browse Source

Test

etomic
jl777 7 years ago
parent
commit
b7b919216d
  1. 2
      iguana/exchanges/LP_instantdex.c
  2. 1
      iguana/exchanges/LP_nativeDEX.c
  3. 4
      iguana/exchanges/LP_remember.c

2
iguana/exchanges/LP_instantdex.c

@ -132,7 +132,7 @@ void LP_instantdex_depositadd(char *coinaddr,bits256 txid)
for (i=0; i<n; i++)
{
prevtxid = jbits256i(array,i);
//char str[65]; printf("instantdex iter.%d i.%d check %s\n",iter,i,bits256_str(str,prevtxid));
char str[65]; printf("instantdex iter.%d i.%d check %s\n",iter,i,bits256_str(str,prevtxid));
if ( LP_instantdex_creditcalc(coin,0,prevtxid,coinaddr) > 0 )
{
LP_instantdex_deposituniq(fp,prevtxid);

1
iguana/exchanges/LP_nativeDEX.c

@ -18,7 +18,6 @@
// marketmaker
//
// ordermatch pricing error
// signals -> autoprice
// https://github.com/bitcoin/bips/blob/master/bip-0143.mediawiki for signing BCH/BTG
// compress packets
// portfolio to set prices from historical

4
iguana/exchanges/LP_remember.c

@ -923,6 +923,8 @@ cJSON *basilisk_remember(int64_t *KMDtotals,int64_t *BTCtotals,uint32_t requesti
bitcoin_address(otheraddr,alice->taddr,alice->pubtype,rswap.other33,33);
destBdest = otheraddr;
destAdest = rswap.Adestaddr;
if ( strcmp(alice->smartaddr,rswap.Adestaddr) != 0 )
printf("this isnt my swap! alice.(%s vs %s)\n",alice->smartaddr,rswap.Adestaddr);
}
if ( (bob= LP_coinfind(rswap.bobcoin)) != 0 )
{
@ -938,6 +940,8 @@ cJSON *basilisk_remember(int64_t *KMDtotals,int64_t *BTCtotals,uint32_t requesti
bitcoin_address(otheraddr,bob->taddr,bob->pubtype,rswap.other33,33);
srcAdest = otheraddr;
srcBdest = rswap.destaddr;
if ( strcmp(bob->smartaddr,rswap.destaddr) != 0 )
printf("this isnt my swap! bob.(%s vs %s)\n",bob->smartaddr,rswap.destaddr);
}
if ( (alice= LP_coinfind(rswap.alicecoin)) != 0 )
{

Loading…
Cancel
Save