temporary code to debug issues with the testnet bootstrap node

This commit is contained in:
Zahary Karadjov 2019-06-24 15:27:47 +03:00 committed by zah
parent c7e06374f4
commit 0116bdaed7
1 changed files with 2 additions and 0 deletions

View File

@ -504,7 +504,9 @@ proc p2pProtocolBackendImpl*(p: P2PProtocol): Backend =
`streamVar`: `P2PStream`) {.async, gcsafe.} =
let `peerVar` = peerFromStream(`daemonVar`, `streamVar`)
try:
debug "INCOMING CONNECTION", `peerVar`
`await` `handshakeProcName`(`peerVar`, `streamVar`)
debug "HANSHAKE COMPLETED", `peerVar`
except SerializationError as err:
debug "Failed to decode message",
err = err.formatMsg("<msg>"),