|
@ -448,7 +448,8 @@ char *LP_pricepings(void *ctx,char *myipaddr,int32_t pubsock,char *base,char *re |
|
|
{ |
|
|
{ |
|
|
struct iguana_info *basecoin,*relcoin; char pubsecpstr[67]; uint32_t timestamp; uint64_t price64; bits256 zero; cJSON *reqjson = cJSON_CreateObject(); |
|
|
struct iguana_info *basecoin,*relcoin; char pubsecpstr[67]; uint32_t timestamp; uint64_t price64; bits256 zero; cJSON *reqjson = cJSON_CreateObject(); |
|
|
// LP_addsig
|
|
|
// LP_addsig
|
|
|
if ( (basecoin= LP_coinfind(base)) != 0 && (relcoin= LP_coinfind(rel)) != 0 && basecoin->electrum == 0 && relcoin->electrum == 0 ) |
|
|
printf("base %s, rel %s %.8f\n",base,rel,price); |
|
|
|
|
|
if ( (basecoin= LP_coinfind(base)) != 0 && (relcoin= LP_coinfind(rel)) != 0 && relcoin->electrum == 0 )//&& basecoin->electrum == 0 )
|
|
|
{ |
|
|
{ |
|
|
memset(zero.bytes,0,sizeof(zero)); |
|
|
memset(zero.bytes,0,sizeof(zero)); |
|
|
jaddbits256(reqjson,"pubkey",G.LP_mypub25519); |
|
|
jaddbits256(reqjson,"pubkey",G.LP_mypub25519); |
|
|