From e0d5c2e331f4843971181c750812130a6093a87c Mon Sep 17 00:00:00 2001 From: SionoiS Date: Thu, 23 Apr 2026 10:54:14 -0400 Subject: [PATCH] remove addr policy & hole punch service --- waku/discovery/waku_kademlia.nim | 4 +++- waku/node/waku_switch.nim | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/waku/discovery/waku_kademlia.nim b/waku/discovery/waku_kademlia.nim index c80c9a8d7..ae56ba0fa 100644 --- a/waku/discovery/waku_kademlia.nim +++ b/waku/discovery/waku_kademlia.nim @@ -143,7 +143,9 @@ proc periodicLookup( # For testing lets use only one hard-coded service # Same as the advertised one - discard await self.lookup("delivery") + let peers = await self.lookup("delivery") + + debug "lookup complete", peer_found = peers.len proc new*( T: type WakuKademlia, diff --git a/waku/node/waku_switch.nim b/waku/node/waku_switch.nim index 18bd03a57..5d4536a35 100644 --- a/waku/node/waku_switch.nim +++ b/waku/node/waku_switch.nim @@ -99,9 +99,9 @@ proc newWakuSwitch*( .withTcpTransport(transportFlags) .withNameResolver(nameResolver) .withSignedPeerRecord(sendSignedPeerRecord) - .withCircuitRelay(circuitRelay) - .withServices(@[hpService]) - .withAddressPolicy(noPrivateAddressPolicy) + #.withAddressPolicy(publicRoutableAddressPolicy) + #.withCircuitRelay(circuitRelay) + #.withServices(@[hpService]) if peerStoreCapacity.isSome(): b = b.withPeerStore(peerStoreCapacity.get())