diff --git a/iguana/SuperNET.c b/iguana/SuperNET.c index b35894774..0cc2ef705 100755 --- a/iguana/SuperNET.c +++ b/iguana/SuperNET.c @@ -789,7 +789,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); } maxdelay = juint(json,"maxdelay"); - if ( 0 && jstr(json,"method") != 0 && strcmp(jstr(json,"method"),"getpeers") != 0 ) + if ( 1 && jstr(json,"method") != 0 && strcmp(jstr(json,"method"),"getpeers") != 0 ) printf("GOT >>>>>>>> SUPERNET P2P.(%s) from.%s %s valid.%d:%d\n",jprint(json,0),coin->symbol,addr->ipaddr,addr->validpub,addr->othervalid); if ( (myipaddr= jstr(json,"yourip")) != 0 ) SuperNET_checkipaddr(SuperNET_MYINFO(0),coin,addr,myipaddr,ipaddr); diff --git a/iguana/iguana_instantdex.c b/iguana/iguana_instantdex.c index a2f325db8..50bb6e60b 100755 --- a/iguana/iguana_instantdex.c +++ b/iguana/iguana_instantdex.c @@ -370,7 +370,8 @@ char *instantdex_sendcmd(struct supernet_info *myinfo,struct instantdex_offer *o j = (i + r) % max; if ( (addr= coin->peers.ranked[j]) != 0 && addr->supernet != 0 && addr->usock >= 0 ) { - iguana_queue_send(coin,addr,0,serialized,"InstantDEX",msg->sig.allocsize,0,0); + printf("send to (%s)\n",addr->ipaddr); + iguana_queue_send(coin,addr,0,serialized,"InstantDEX",msg->sig.allocsize,0,1); if ( --hops <= 0 ) break; } diff --git a/iguana/iguana_peers.c b/iguana/iguana_peers.c index 7404cd0d1..9e9b694e0 100755 --- a/iguana/iguana_peers.c +++ b/iguana/iguana_peers.c @@ -464,6 +464,9 @@ int32_t iguana_queue_send(struct iguana_info *coin,struct iguana_peer *addr,int3 exit(-1); return(-1); } + else if ( forceflag != 0 ) + return(iguana_send(coin,addr,serialized,len)); + if ( (datalen= iguana_sethdr((void *)serialized,coin->chain->netmagic,cmd,&serialized[sizeof(struct iguana_msghdr)],len)) < 0 ) return(-1); if ( strcmp("getaddr",cmd) == 0 && time(NULL) < addr->lastgotaddr+300 )