mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-29 18:10:48 +02:00
lnd+channeldb: add graph cache option to channeldb
With this commit we forward the config option for disabling the channel graph cache as a boolean to the channeldb. But we invert its meaning to make the flag easier to understand.
This commit is contained in:
@ -847,6 +847,7 @@ func (d *DefaultDatabaseBuilder) BuildDatabase(
|
||||
channeldb.OptionSetChannelCacheSize(cfg.Caches.ChannelCacheSize),
|
||||
channeldb.OptionSetBatchCommitInterval(cfg.DB.BatchCommitInterval),
|
||||
channeldb.OptionDryRunMigration(cfg.DryRunMigration),
|
||||
channeldb.OptionSetUseGraphCache(!cfg.DB.NoGraphCache),
|
||||
}
|
||||
|
||||
// We want to pre-allocate the channel graph cache according to what we
|
||||
|
Reference in New Issue
Block a user