discovery+funding: add validation of the announcement messages

Add validation functions and include validation checks in the
annoncement process function.
This commit is contained in:
Andrey Samokhvalov authored and Olaoluwa Osuntokun committed 2017-03-29 19:49:05 -07:00
1 parent a23715a9c7
commit d4055d7830
7 files changed
+244 -60

No files matched your search

+2 -1
View File
@@ -502,7 +502,8 @@ out:
p.server.discoverSrv.ProcessRemoteAnnouncement(msg,
p.addr.IdentityKey)
default:
peerLog.Errorf("unknown message received from peer "+"%v", p)
peerLog.Errorf("unknown message received from peer "+
"%v", p)
}
if isChanUpdate {