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:
parent
b85c1c3b2a
commit
16388aba00
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user