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

This commit is contained in:
eugene
2020-09-24 10:19:54 -04:00
parent 3362c9437b
commit fada3dd871
4 changed files with 261 additions and 243 deletions

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,