Browse Source

Other path test

beta
jl777 7 years ago
parent
commit
bdfd1feb5b
  1. 1
      iguana/exchanges/LP_nativeDEX.c
  2. 4
      iguana/exchanges/LP_ordermatch.c

1
iguana/exchanges/LP_nativeDEX.c

@ -18,6 +18,7 @@
// LP_nativeDEX.c
// marketmaker
//
//printf("other path %p %p %.8f\n",LP_allocated(butxo->payment.txid,butxo->payment.vout),LP_allocated(butxo->deposit.txid,butxo->deposit.vout), LP_quote_validate(autxo,butxo,&Q,1));
// sign critical api calls (pubkey reg, listunspent, orders?)
// dPoW security -> 4: KMD notarized, 5: BTC notarized
// new testchain

4
iguana/exchanges/LP_ordermatch.c

@ -895,6 +895,10 @@ int32_t LP_tradecommand(void *ctx,char *myipaddr,int32_t pubsock,cJSON *argjson,
else
{
printf("other path %p %p %.8f\n",LP_allocated(butxo->payment.txid,butxo->payment.vout),LP_allocated(butxo->deposit.txid,butxo->deposit.vout), LP_quote_validate(autxo,butxo,&Q,1));
value = LP_txvalue(Q.coinaddr,Q.srccoin,Q.txid,Q.vout);
value2 = LP_txvalue(Q.coinaddr,Q.srccoin,Q.txid2,Q.vout2);
if ( (butxo= LP_utxoadd(1,coin->symbol,butxo->payment.txid,butxo->payment.vout,value,butxo->deposit.txid,butxo->deposit.vout,value2,Q.coinaddr,G.LP_mypub25519,G.gui,0)) == 0 )
printf("couldnt create bob's utxopair\n");
}
}
if ( butxo == 0 || butxo == &B )

Loading…
Cancel
Save