mirror of
https://github.com/codex-storage/nim-libp2p.git
synced 2025-01-11 19:44:18 +00:00
Enable bootstrap.
This commit is contained in:
parent
66973aed3f
commit
10548f9b1b
@ -62,8 +62,8 @@ proc main() {.async.} =
|
||||
thread.createThread(threadMain, 0)
|
||||
|
||||
echo "= Starting P2P node"
|
||||
data.api = await newDaemonApi({DHTFull})
|
||||
await sleepAsync(1000)
|
||||
data.api = await newDaemonApi({DHTFull, Bootstrap})
|
||||
await sleepAsync(3000)
|
||||
var id = await data.api.identity()
|
||||
|
||||
proc streamHandler(api: DaemonAPI, stream: P2PStream) {.async.} =
|
||||
|
Loading…
x
Reference in New Issue
Block a user