lndc: remove extraneous prints from tests
This commit is contained in:
parent
09219917a0
commit
32ecbcf6c4
@ -101,9 +101,6 @@ func (l *Listener) createCipherConn(lnConn *LNDConn) (*btcec.PrivateKey, error)
|
|||||||
|
|
||||||
lnConn.chachaStream, err = chacha20poly1305.New(sessionKey[:])
|
lnConn.chachaStream, err = chacha20poly1305.New(sessionKey[:])
|
||||||
|
|
||||||
// display private key for debug only
|
|
||||||
fmt.Printf("made session key %x\n", sessionKey)
|
|
||||||
|
|
||||||
lnConn.remoteNonceInt = 1 << 63
|
lnConn.remoteNonceInt = 1 << 63
|
||||||
lnConn.myNonceInt = 0
|
lnConn.myNonceInt = 0
|
||||||
|
|
||||||
@ -122,11 +119,9 @@ func (l *Listener) authenticateConnection(
|
|||||||
slice := make([]byte, 73)
|
slice := make([]byte, 73)
|
||||||
n, err := lnConn.Conn.Read(slice)
|
n, err := lnConn.Conn.Read(slice)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Printf("Read error: %s\n", err.Error())
|
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Printf("read %d bytes\n", n)
|
|
||||||
authmsg := slice[:n]
|
authmsg := slice[:n]
|
||||||
if len(authmsg) != 53 && len(authmsg) != 73 {
|
if len(authmsg) != 53 && len(authmsg) != 73 {
|
||||||
return fmt.Errorf("got auth message of %d bytes, "+
|
return fmt.Errorf("got auth message of %d bytes, "+
|
||||||
|
Loading…
Reference in New Issue
Block a user