@ -144,7 +144,7 @@ double LP_quote_validate(struct LP_utxoinfo *autxo,struct LP_utxoinfo *butxo,str
{
if ( LP_iseligible ( & destvalue , & destvalue2 , 0 , qp - > destcoin , qp - > desttxid , qp - > destvout , qp - > destsatoshis , qp - > feetxid , qp - > feevout ) = = 0 )
{
char str [ 65 ] ; printf ( " alice not eligible destsatoshis %.8f (%.8f %.8f) %s/v%d \n " , dstr ( qp - > destsatoshis ) , dstr ( destvalue ) , dstr ( destvalue2 ) , bits256_str ( str , qp - > feetxid ) , qp - > feevout ) ;
char str [ 65 ] , str2 [ 65 ] ; printf ( " alice not eligible %.8f -> dest %.8f %.8f (%.8f %.8f) %s/v%d %s/v%d \n " , dstr ( qp - > satoshis ) , dstr ( qp - > destsatoshis ) , ( double ) qp - > destsatoshis / qp - > satoshis , dstr ( destvalue ) , dstr ( destvalue2 ) , bits256_str ( str , qp - > desttxid ) , qp - > destvout , bits256_str ( str2 , qp - > feetxid ) , qp - > feevout ) ;
return ( - 3 ) ;
}
if ( ( txout = LP_gettxout ( qp - > destcoin , qp - > destaddr , qp - > desttxid , qp - > destvout ) ) ! = 0 )
@ -885,7 +885,7 @@ int32_t LP_tradecommand(void *ctx,char *myipaddr,int32_t pubsock,cJSON *argjson,
}
if ( qprice < ( ask - 0.00000001 ) * 0.998 )
{
printf ( " (%.8f %.8f) quote price %.8f too low vs %.8f for %s/%s \n " , bid , ask , qprice , price , Q . srccoin , Q . destcoin ) ;
printf ( " (%.8f %.8f) quote price %.8f too low vs %.8f for %s/%s %.8f < %.8f \n " , bid , ask , qprice , price , Q . srccoin , Q . destcoin , qprice , ( ask - 0.00000001 ) * 0.998 ) ;
return ( retval ) ;
}
char str [ 65 ] , str2 [ 65 ] ; printf ( " butxo.%p (%s %s) TRADECOMMAND.(%s) \n " , butxo , butxo ! = 0 ? bits256_str ( str , butxo - > payment . txid ) : " " , butxo ! = 0 ? bits256_str ( str2 , butxo - > deposit . txid ) : " " , jprint ( argjson , 0 ) ) ;
@ -906,7 +906,7 @@ int32_t LP_tradecommand(void *ctx,char *myipaddr,int32_t pubsock,cJSON *argjson,
jaddstr ( retjson , " method " , " reserved " ) ;
msg = jprint ( retjson , 0 ) ;
butxo - > T . lasttime = ( uint32_t ) time ( NULL ) ;
printf ( " return after queued RESERVED: set swappending.%u accept qprice %.8f, min %.8f \n (%s) \n " , butxo - > T . swappending , qprice , price , msg ) ;
printf ( " return after queued RESERVED: set swappending.%u accept qprice %.8f, min %.8f \n (%s) \n " , butxo - > T . swappending , qprice , ask , msg ) ;
// LP_addsig
//msg2 = clonestr(msg);
LP_reserved_msg ( 1 , Q . srccoin , Q . destcoin , butxo - > S . otherpubkey , clonestr ( msg ) ) ;