From c0a72667b37df719668c27ff41c089daddb219f7 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 20 Jan 2016 03:31:38 -0300 Subject: [PATCH] test --- iguana/SuperNET.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/iguana/SuperNET.c b/iguana/SuperNET.c index 894ba283c..e251073f1 100644 --- a/iguana/SuperNET.c +++ b/iguana/SuperNET.c @@ -315,7 +315,7 @@ int32_t iguana_send_supernet(struct iguana_info *coin,struct iguana_peer *addr,c if ( (json= cJSON_Parse(jsonstr)) != 0 ) { serialized = malloc(sizeof(struct iguana_msghdr) + IGUANA_MAXPACKETSIZE); - memset(privkey.bytes,0,sizeof(privkey));// = myinfo->privkey; + privkey = myinfo->privkey; if ( addr->validpub > 3 && addr->othervalid > 3 ) destpub = addr->pubkey; else privkey = GENESIS_PRIVKEY, destpub = GENESIS_PUBKEY; @@ -542,8 +542,8 @@ char *SuperNET_p2p(struct iguana_info *coin,struct iguana_peer *addr,int32_t *de if ( addr->validpub > 3 && addr->othervalid > 3 ) { privkey = myinfo->privkey; - //senderpub = addr->pubkey; - memset(senderpub.bytes,0,sizeof(senderpub)); + senderpub = addr->pubkey; + //memset(senderpub.bytes,0,sizeof(senderpub)); printf("decrypt with priv.%llx pub.%llx\n",(long long)privkey.txid,(long long)senderpub.txid); } else privkey = GENESIS_PRIVKEY, senderpub = GENESIS_PUBKEY; if ( (msgbits= SuperNET_deciphercalc(&ptr,&msglen,privkey,senderpub,data,datalen,space,sizeof(space))) == 0 )