Browse Source

Test

etomic
jl777 8 years ago
parent
commit
3690ff54b4
  1. 4
      iguana/SuperNET_keys.c
  2. 3
      iguana/main.c

4
iguana/SuperNET_keys.c

@ -22,6 +22,7 @@
#include "../includes/curve25519.h"
#include "../includes/cJSON.h"
extern int32_t EncryptWallet;
/*
if ( 0 )
@ -364,7 +365,6 @@ void SuperNET_parsemyinfo(struct supernet_info *myinfo,cJSON *msgjson)
SuperNET_setkeys(myinfo,myinfo->persistent_priv.bytes,sizeof(myinfo->persistent_priv),0);
}
int32_t Encryptwallet;
char *SuperNET_keysinit(struct supernet_info *myinfo,char *argjsonstr)
{
long allocsize; cJSON *msgjson,*json=0; uint32_t r; bits256 wallethash,wallet2priv; int32_t len,c;
@ -377,7 +377,7 @@ char *SuperNET_keysinit(struct supernet_info *myinfo,char *argjsonstr)
SuperNET_parsemyinfo(myinfo,msgjson);
free_json(msgjson);
}
else if ( Encryptwallet != 0 )
else if ( EncryptWallet != 0 )
{
if ( bits256_nonz(myinfo->persistent_priv) == 0 )
{

3
iguana/main.c

@ -24,6 +24,8 @@
#include "../pnacl_main.h"
#include "iguana777.h"
int32_t EncryptWallet;
struct iguana_jsonitem { struct queueitem DL; struct supernet_info *myinfo; uint32_t fallback,expired,allocsize; char *retjsonstr; char remoteaddr[64]; uint16_t port; char jsonstr[]; };
uint16_t SuperNET_API2num(char *agent,char *method)
@ -1535,7 +1537,6 @@ struct supernet_info *SuperNET_accountfind(cJSON *json)
FOUR_STRINGS(SuperNET,login,handle,password,permanentfile,passphrase)
{
extern int32_t EncryptWallet;
char *str,*decryptstr = 0; cJSON *argjson,*item,*walletitem;
if ( remoteaddr != 0 )
return(clonestr("{\"error\":\"no remote\"}"));

Loading…
Cancel
Save