lnwire: temporarily disable chan/node announcement validation

This commit temporarily disables the signature validation for all
announcement related messages which should be authenticated by one or
many parties. This feature is being disabled as we don’t yet generate
valid signatures for our advertisements and the validation of the
messages should be placed in the layer 3 discovery service rather than
within within the message parsing layer.
This commit is contained in:
Olaoluwa Osuntokun 2016-12-24 14:58:26 -06:00
parent b85c1c3b2a
commit 16388aba00
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2
2 changed files with 6 additions and 0 deletions

@ -51,6 +51,9 @@ var _ Message = (*ChannelAnnouncement)(nil)
//
// This is part of the lnwire.Message interface.
func (a *ChannelAnnouncement) Validate() error {
// TODO(roasbeef): move validation to discovery service
return nil
var sigHash []byte
sigHash = wire.DoubleSha256(a.FirstNodeID.SerializeCompressed())

@ -95,6 +95,9 @@ var _ Message = (*NodeAnnouncement)(nil)
//
// This is part of the lnwire.Message interface.
func (a *NodeAnnouncement) Validate() error {
// TODO(roasbeef): move validation to discovery service
return nil
if err := a.Alias.Validate(); err != nil {
return err
}