Fixed compilation error

This commit is contained in:
Yuriy Glukhov 2018-05-02 11:52:38 +03:00
parent 7c2e8daae4
commit 7c09171906
2 changed files with 3 additions and 2 deletions

View File

@ -514,7 +514,7 @@ import typetraits
proc rlpxConnect*(myKeys: KeyPair, remote: Node): Future[Peer] {.async.} =
# TODO: Make sure to close the socket in case of exception
result.socket = newAsyncSocket()
await result.socket.connect($remote.address.ip, remote.address.tcpPort)
await result.socket.connect($remote.node.address.ip, remote.node.address.tcpPort)
const encryptionEnabled = true
@ -534,7 +534,7 @@ proc rlpxConnect*(myKeys: KeyPair, remote: Node): Future[Peer] {.async.} =
var authMsg: array[AuthMessageMaxEIP8, byte]
var authMsgLen = 0
check authMessage(handshake, remote.pubkey, authMsg, authMsgLen,
check authMessage(handshake, remote.node.pubkey, authMsg, authMsgLen,
encrypt = encryptionEnabled)
await result.socket.send(addr authMsg[0], authMsgLen)

View File

@ -1,3 +1,4 @@
import ../ethp2p/discovery
import ../ethp2p/peer_pool
# TODO: