Fix chat example to show peers in base58.

This commit is contained in:
cheatfate 2018-11-27 14:42:49 +02:00
parent b4e9a7b8a6
commit ff965830d8
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ proc main() {.async.} =
var id = await data.api.identity()
proc streamHandler(api: DaemonAPI, stream: P2PStream) {.async.} =
echo "= Peer ", toHex(stream.peer), " joined chat"
echo "= Peer ", Base58.encode(stream.peer), " joined chat"
data.remotes.add(stream.transp)
while true:
var line = await stream.transp.readLine()