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 176963e3a..6517efa7f 100644 Binary files a/iguana/pnacl/Release/iguana.pexe and b/iguana/pnacl/Release/iguana.pexe differ