From 5743d752a7f38831733bbafe4839436013269801 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 2 Feb 2016 00:45:17 -0300 Subject: [PATCH] maybe core works --- iguana/SuperNET.c | 2 +- iguana/iguana_instantdex.c | 2 +- iguana/iguana_rpc.c | 1 - iguana/pnacl/Release/iguana.pexe | Bin 2741300 -> 2741300 bytes 4 files changed, 2 insertions(+), 3 deletions(-) diff --git a/iguana/SuperNET.c b/iguana/SuperNET.c index 7e7130ebb..1eb82956d 100644 --- a/iguana/SuperNET.c +++ b/iguana/SuperNET.c @@ -1295,7 +1295,7 @@ FOUR_STRINGS(SuperNET,login,handle,password,permanentfile,passphrase) { printf("decrypted.(%s)\n",decryptstr); free(decryptstr); - if ( (passphrase= jstr(argjson,"passphrase")) != 0 ) + if ( (passphrase= jstr(argjson,"result")) != 0 ) { SuperNET_setkeys(myinfo,passphrase,(int32_t)strlen(passphrase),1); free_json(argjson); diff --git a/iguana/iguana_instantdex.c b/iguana/iguana_instantdex.c index 6bb7339f3..a47179a44 100755 --- a/iguana/iguana_instantdex.c +++ b/iguana/iguana_instantdex.c @@ -177,8 +177,8 @@ char *instantdex_request(struct supernet_info *myinfo,struct instantdex_msghdr * rel = jstr(argjson,"rel"); volume = jdouble(argjson,"volume"); aveprice = instantdex_aveprice(myinfo,sortbuf,(int32_t)(sizeof(sortbuf)/sizeof(*sortbuf)),&totalvol,base,rel,volume,argjson); + printf("aveprice %.8f vol %f\n",aveprice,volume); return(clonestr("{\"result\":\"request calculated aveprice\"}")); - return(clonestr("{\"error\":\"request missing parameter\"}")); } else return(clonestr("{\"error\":\"request needs argjson\"}")); } diff --git a/iguana/iguana_rpc.c b/iguana/iguana_rpc.c index 76f259c88..51442ebf5 100755 --- a/iguana/iguana_rpc.c +++ b/iguana/iguana_rpc.c @@ -723,7 +723,6 @@ char *SuperNET_rpcparse(struct supernet_info *myinfo,char *retbuf,int32_t bufsiz { *jsonflagp = 1; SuperNET_htmlstr("index7778.html",retbuf,bufsize,0); - //return(retbuf); return(OS_filestr(&filesize,"index7778.html")); } if ( strncmp(&url[i],"/api",strlen("/api")) == 0 ) diff --git a/iguana/pnacl/Release/iguana.pexe b/iguana/pnacl/Release/iguana.pexe index 176963e3a4b69e825ed612c5858d77cfcad83c02..6517efa7f80f7b99ebc919566315e442b664bbed 100644 GIT binary patch delta 154 zcmWN=$qj-~07cO-2u|RH3Xb3abU>)gt&5jfgB552KcSr81Uon0lN|H?IEGI-a^=a_ zK!HLHHPToUO-f=Ui~f6%($x;g%^g?zrcHN1k|Q&Vm6 Gum1yJHb7Yb delta 154 zcmWN=$qj-~07cO-2u|RH3Xb3abU^6N#Y=3$t