server.go + peer: use MessageConn interface instead of brontide.Conn

This commit is contained in:
eugene committed 2020-09-25 12:05:36 -04:00
1 parent 3362c9437b
commit fada3dd871
4 files changed
+261 -243

No files matched your search

+1 -1
View File
@@ -2946,7 +2946,7 @@ func (s *server) peerConnected(conn net.Conn, connReq *connmgr.ConnReq,
// htlcs, an extra block is added to prevent the channel from being
// closed when the htlc is outstanding and a new block comes in.
pCfg := peer.Config{
Conn: conn,
Conn: brontideConn,
ConnReq: connReq,
Addr: peerAddr,
Inbound: inbound,