diff --git a/iguana/exchanges/LP_commands.c b/iguana/exchanges/LP_commands.c index 2d967fc8b..39763fea1 100644 --- a/iguana/exchanges/LP_commands.c +++ b/iguana/exchanges/LP_commands.c @@ -23,17 +23,16 @@ struct basilisk_request *LP_requestinit(struct basilisk_request *rp,bits256 srch struct basilisk_request R; memset(rp,0,sizeof(*rp)); rp->srchash = srchash; - rp->desthash = desthash; rp->srcamount = srcsatoshis; - rp->destamount = destsatoshis; rp->timestamp = timestamp; - rp->quotetime = quotetime; rp->DEXselector = DEXselector; safecopy(rp->src,src,sizeof(rp->src)); safecopy(rp->dest,dest,sizeof(rp->dest)); R = *rp; rp->requestid = basilisk_requestid(rp); - *rp = R; + rp->quotetime = quotetime; + rp->desthash = desthash; + rp->destamount = destsatoshis; rp->quoteid = basilisk_quoteid(rp); return(rp); } diff --git a/iguana/exchanges/LP_transaction.c b/iguana/exchanges/LP_transaction.c index c54336e74..3a8d63120 100644 --- a/iguana/exchanges/LP_transaction.c +++ b/iguana/exchanges/LP_transaction.c @@ -67,7 +67,7 @@ uint64_t LP_txvalue(char *symbol,bits256 txid,int32_t vout) uint64_t value = 0; cJSON *txobj,*vouts,*utxoobj; int32_t numvouts; if ( (txobj= LP_gettx(symbol,txid)) != 0 ) { - char str[65]; printf("%s.(%s) txobj.(%s)\n",symbol,bits256_str(str,txid),jprint(txobj,0)); + //char str[65]; printf("%s.(%s) txobj.(%s)\n",symbol,bits256_str(str,txid),jprint(txobj,0)); if ( (vouts= jarray(&numvouts,txobj,"vout")) != 0 && vout < numvouts ) { utxoobj = jitem(vouts,vout);