Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion nim-test-node/regression/kad_utils.nim
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,12 @@ proc connectToBootstrap*(
BootstrapDialTimeout
)
notice "Connected to bootstrap", address = address, peerId = peerId
bootstraps.add((peerId, @[address]))

let learnedAddrs = switch.peerStore[AddressBook][peerId]
if learnedAddrs.len == 0:
return err("bootstrap did not advertise dialable peer-specific addrs")

bootstraps.add((peerId, learnedAddrs))
break
except CancelledError as exc:
raise exc
Expand Down
1 change: 1 addition & 0 deletions nim-test-node/regression/main.nim
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ proc main {.async.} =
builder = SwitchBuilder
.new()
.withNoise()
.withWildcardResolver()
.withAddress(MultiAddress.init(address).tryGet())
.withMaxConnections(parseInt(getEnv("MAXCONNECTIONS", "250")))

Expand Down
2 changes: 1 addition & 1 deletion nim-test-node/regression/test_node.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ skipDirs = @[]

requires "nim >= 2.2.0",
"nimcrypto 0.6.4",
"https://github.com/vacp2p/nim-libp2p#26e181e4dd65188051ab4783bcc538ed9579644f", # 2.0.0
"https://github.com/vacp2p/nim-libp2p#3045d237df037f3aaf80f21e90cb8fcacb0e4c92", # 2.1.0 with extra dial logging
"ggplotnim"