|
@ -956,7 +956,7 @@ struct LP_quoteinfo *LP_trades_gotconnect(void *ctx,struct LP_quoteinfo *qp,stru |
|
|
|
|
|
|
|
|
struct LP_quoteinfo *LP_trades_gotconnected(void *ctx,struct LP_quoteinfo *qp,struct LP_quoteinfo *newqp,char *pairstr) |
|
|
struct LP_quoteinfo *LP_trades_gotconnected(void *ctx,struct LP_quoteinfo *qp,struct LP_quoteinfo *newqp,char *pairstr) |
|
|
{ |
|
|
{ |
|
|
char *retstr; |
|
|
char *retstr; int32_t changed; |
|
|
//char str[65]; printf("alice %s received CONNECTED.(%llu)\n",bits256_str(str,G.LP_mypub25519),(long long)qp->aliceid);
|
|
|
//char str[65]; printf("alice %s received CONNECTED.(%llu)\n",bits256_str(str,G.LP_mypub25519),(long long)qp->aliceid);
|
|
|
*newqp = *qp; |
|
|
*newqp = *qp; |
|
|
qp = newqp; |
|
|
qp = newqp; |
|
@ -966,6 +966,7 @@ struct LP_quoteinfo *LP_trades_gotconnected(void *ctx,struct LP_quoteinfo *qp,st |
|
|
LP_aliceid(qp->tradeid,qp->aliceid,"connected",0,0); |
|
|
LP_aliceid(qp->tradeid,qp->aliceid,"connected",0,0); |
|
|
if ( (retstr= LP_connectedalice(qp,pairstr)) != 0 ) |
|
|
if ( (retstr= LP_connectedalice(qp,pairstr)) != 0 ) |
|
|
free(retstr); |
|
|
free(retstr); |
|
|
|
|
|
LP_mypriceset(&changed,qp->destcoin,qp->srccoin,0.); |
|
|
return(qp); |
|
|
return(qp); |
|
|
} |
|
|
} |
|
|
//printf("LP_trades_alicevalidate error\n");
|
|
|
//printf("LP_trades_alicevalidate error\n");
|
|
|