lnd.xprv/discovery
Olaoluwa Osuntokun 8c181b6f4e
discovery: return an error if ChannelUpdate has unknown flags
In this commit, we fix an existing bug that could result in a panic if
we received a ChannelUpdate message with an unknown set of flags. If
the flag wasn’t set to zero or one, then the pubKey parameter would be
still nil when we attempted to validate it, causing an error to occur.

We remedy this by instead returning an error if the flags are unknown.
In a future commit, we will properly handle the set of flags that
indicates the channel should be disabled.
2017-11-11 14:59:16 -08:00
..
ann_validation.go discovery: rename validation.go to ann_validation.go 2017-09-03 16:18:28 -07:00
bootstrapper.go discovery: fix linter warning 2017-10-30 19:04:00 -07:00
gossiper_test.go multi: Update lnd to use new feature vector API. 2017-10-17 22:47:20 -07:00
gossiper.go discovery: return an error if ChannelUpdate has unknown flags 2017-11-11 14:59:16 -08:00
log.go lnd: remove seelog logger 2017-06-25 14:19:56 +01:00
utils.go multi: Update lnd to use new feature vector API. 2017-10-17 22:47:20 -07:00