lnd: pass CLI reject+channel cache sizes to channeldb Open
This commit is contained in:
parent
433665932c
commit
63b15fd8fb
6
lnd.go
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
|
||||
|
Loading…
Reference in New Issue
Block a user