peer: in logWireMessage also unset curve field for lnwire.ChannelReestablish

This will allow users to run in trace mode again, without having an
excessive amount of spam in their logs.
This commit is contained in:
Olaoluwa Osuntokun 2017-12-06 16:27:56 -08:00
parent 3bc248e01c
commit 7b10f54216
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21
1 changed files with 2 additions and 0 deletions

View File

@ -922,6 +922,8 @@ func (p *peer) logWireMessage(msg lnwire.Message, read bool) {
}))
switch m := msg.(type) {
case *lnwire.ChannelReestablish:
m.LocalUnrevokedCommitPoint.Curve = nil
case *lnwire.RevokeAndAck:
m.NextRevocationKey.Curve = nil
case *lnwire.NodeAnnouncement: