multi: add block cache size config

This commit adds block cache size to the main lnd config along with the
chainreg config.
This commit is contained in:
Elle Mouton
2021-03-18 13:40:53 +02:00
parent 275d55c9e6
commit 6702c79216
4 changed files with 17 additions and 0 deletions

1
lnd.go
View File

@@ -546,6 +546,7 @@ func Main(cfg *Config, lisCfg ListenerCfg, interceptor signal.Interceptor) error
Dialer: func(addr string) (net.Conn, error) {
return cfg.net.Dial("tcp", addr, cfg.ConnectionTimeout)
},
BlockCacheSize: cfg.BlockCacheSize,
}
activeChainControl, cleanup, err := chainreg.NewChainControl(chainControlCfg)