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:
Oliver Gugger committed 2021-10-22 09:32:48 +02:00
1 parent a2ad533136
commit f216da32f3
6 files changed
+19 -2

No files matched your search

+1
View File
@@ -173,6 +173,7 @@ func makeTestGraph() (*channeldb.ChannelGraph, kvdb.Backend, func(), error) {
graph, err := channeldb.NewChannelGraph(
backend, opts.RejectCacheSize, opts.ChannelCacheSize,
opts.BatchCommitInterval, opts.PreAllocCacheNumNodes,
true,
)
if err != nil {
cleanUp()