From c6d4012e5e7846de19613dfc6a7d940b925b812d Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 20 Jan 2016 03:17:13 -0300 Subject: [PATCH] test --- iguana/SuperNET.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iguana/SuperNET.c b/iguana/SuperNET.c index 01bf8cf3b..2794cb627 100644 --- a/iguana/SuperNET.c +++ b/iguana/SuperNET.c @@ -570,7 +570,7 @@ char *SuperNET_p2p(struct iguana_info *coin,struct iguana_peer *addr,int32_t *de printf("validpub.%d: %x vs %x shared.%llx\n",addr->validpub,checkc,othercheckc,(long long)addr->sharedseed.txid); } senderpub = jbits256(json,"mypub"); - if ( memcmp(senderpub.bytes,addr->pubkey.bytes,sizeof(senderpub)) != 0 ) + if ( addr->validpub > 3 && memcmp(senderpub.bytes,addr->pubkey.bytes,sizeof(senderpub)) != 0 ) addr->pubkey = senderpub; /*if ( addr->validpub > 3 && bits256_nonz(addr->sharedseed) == 0 ) addr->sharedseed = SuperNET_sharedseed(myinfo->privkey,senderpub);