remove addr policy & hole punch service

This commit is contained in:
SionoiS 2026-04-23 10:54:14 -04:00
parent e5740c2f12
commit e0d5c2e331
No known key found for this signature in database
GPG Key ID: C9458A8CB1852951
2 changed files with 6 additions and 4 deletions

View File

@ -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,

View File

@ -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())