Enable bootstrap.

This commit is contained in:
cheatfate 2018-11-22 16:16:34 +02:00
parent 66973aed3f
commit 10548f9b1b
1 changed files with 2 additions and 2 deletions

View File

@ -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.} =