Browse Source

Test

etomic
jl777 8 years ago
parent
commit
0fe2369b7d
  1. 2
      iguana/exchanges/LP_commands.c
  2. 3
      iguana/exchanges/LP_nativeDEX.c

2
iguana/exchanges/LP_commands.c

@ -133,7 +133,7 @@ trust(pubkey, trust)\n\
retjson = cJSON_CreateObject(); retjson = cJSON_CreateObject();
jaddstr(retjson,"userpass",USERPASS); jaddstr(retjson,"userpass",USERPASS);
jaddbits256(retjson,"mypubkey",LP_mypub25519); jaddbits256(retjson,"mypubkey",LP_mypub25519);
jadd(retjson,"coins",LP_coinsjson(1)); jadd(retjson,"coins",LP_coinsjson(LP_showwif));
return(jprint(retjson,1)); return(jprint(retjson,1));
} }
if ( (userpass= jstr(argjson,"userpass")) == 0 || strcmp(userpass,USERPASS) != 0 ) if ( (userpass= jstr(argjson,"userpass")) == 0 || strcmp(userpass,USERPASS) != 0 )

3
iguana/exchanges/LP_nativeDEX.c

@ -49,7 +49,7 @@ uint16_t LP_fixed_pairport,LP_publicport;
int32_t LP_mybussock = -1; int32_t LP_mybussock = -1;
int32_t LP_mypubsock = -1; int32_t LP_mypubsock = -1;
int32_t LP_mypullsock = -1; int32_t LP_mypullsock = -1;
int32_t LP_pendingswaps,USERPASS_COUNTER,IAMLP = 0; int32_t LP_pendingswaps,LP_showwif,USERPASS_COUNTER,IAMLP = 0;
uint32_t LP_sessionid; uint32_t LP_sessionid;
double LP_profitratio = 1.; double LP_profitratio = 1.;
bits256 LP_mypub25519,LP_mypriv25519; bits256 LP_mypub25519,LP_mypriv25519;
@ -578,6 +578,7 @@ void LP_initpeers(int32_t pubsock,struct LP_peerinfo *mypeer,char *myipaddr,uint
void LPinit(uint16_t myport,uint16_t mypullport,uint16_t mypubport,uint16_t mybusport,char *passphrase,int32_t amclient,char *userhome,cJSON *argjson) void LPinit(uint16_t myport,uint16_t mypullport,uint16_t mypubport,uint16_t mybusport,char *passphrase,int32_t amclient,char *userhome,cJSON *argjson)
{ {
char *myipaddr=0; long filesize,n; int32_t timeout,pubsock=-1; struct LP_peerinfo *mypeer=0; char pushaddr[128],subaddr[128],bindaddr[128]; void *ctx = bitcoin_ctx(); char *myipaddr=0; long filesize,n; int32_t timeout,pubsock=-1; struct LP_peerinfo *mypeer=0; char pushaddr[128],subaddr[128],bindaddr[128]; void *ctx = bitcoin_ctx();
LP_showwif = juint(argjson,"wif");
if ( passphrase == 0 || passphrase[0] == 0 ) if ( passphrase == 0 || passphrase[0] == 0 )
{ {
printf("jeezy says we cant use the nullstring as passphrase and I agree\n"); printf("jeezy says we cant use the nullstring as passphrase and I agree\n");

Loading…
Cancel
Save