lnd.xprv/discovery
Olaoluwa Osuntokun e7e4cdcf49
discovery: avoid always validating ECDSA sigs by asking router if item is fresh
In this commit, we reduce the amount of unnecessary work that the
gossiper can carry out. When CPU profiling some nodes, I noticed that
we’d spend a lot of time validating the signatures for an announcement,
only to realize that the router already had it.

To remedy this, we’ll use the new methods added to the channel router
in order to avoid unnecessarily validating an announcement that is
actually stale. This should reduce memory usage (since it uses big
int’s under the scenes), and also idle CPU usage.
2018-03-06 13:34:51 -05:00
..
ann_validation.go discovery: update graph API usage to match recent API changes 2018-02-06 20:14:32 -08:00
bootstrapper.go multi: comprehensive typo fixes across all packages 2018-02-06 19:11:11 -08:00
gossiper_test.go discovery: avoid always validating ECDSA sigs by asking router if item is fresh 2018-03-06 13:34:51 -05:00
gossiper.go discovery: avoid always validating ECDSA sigs by asking router if item is fresh 2018-03-06 13:34:51 -05:00
log.go lnd: remove seelog logger 2017-06-25 14:19:56 +01:00
utils.go discovery: update graph API usage to match recent API changes 2018-02-06 20:14:32 -08:00