Skip to content

Commit

Permalink
lnd: pass CLI reject+channel cache sizes to channeldb Open
Browse files Browse the repository at this point in the history
  • Loading branch information
cfromknecht committed Mar 28, 2019
1 parent 128520a commit 3a4ed58
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lnd.go
Expand Up @@ -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
Expand Down

0 comments on commit 3a4ed58

Please sign in to comment.