lnd: pass CLI reject+channel cache sizes to channeldb Open

This commit is contained in:
Conner Fromknecht 2019-04-01 16:34:30 -07:00
parent 433665932c
commit 63b15fd8fb
No known key found for this signature in database
GPG Key ID: E7D737B67FA592C7

6
lnd.go

@ -161,7 +161,11 @@ func lndMain() error {
// Open the channeldb, which is dedicated to storing channel, and
// network related metadata.
chanDB, err := channeldb.Open(graphDir)
chanDB, err := channeldb.Open(
graphDir,
channeldb.OptionSetRejectCacheSize(cfg.Caches.RejectCacheSize),
channeldb.OptionSetChannelCacheSize(cfg.Caches.ChannelCacheSize),
)
if err != nil {
ltndLog.Errorf("unable to open channeldb: %v", err)
return err