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