remove ID private key from LNDConn struct

This commit is contained in:
Tadge Dryja
2016-01-17 11:20:40 -08:00
parent 9e5f302288
commit b0a402bc4f
3 changed files with 90 additions and 87 deletions

View File

@ -155,8 +155,9 @@ out:
// breaks down, then return an error to the
// caller.
ipAddr := addr.NetAddr.String()
conn := lndc.NewConn(s.longTermPriv, nil)
if err := conn.Dial(ipAddr, remoteId); err != nil {
conn := lndc.NewConn(nil)
if err := conn.Dial(
s.longTermPriv, ipAddr, remoteId); err != nil {
msg.reply <- err
}