From 675c1b95c91f3da51cb997948a16d42d4d8b3f2e Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 4 Aug 2020 15:33:21 -0700 Subject: [PATCH] lnd: don't set freelist value when creating channeldb This value actually isn't read anywhere, since it's no longer used. Instead, `cfg.Db.Bolt.NoSyncFreeList` is what's evaluated when we go to open the DB. --- lnd.go | 1 - 1 file changed, 1 deletion(-) diff --git a/lnd.go b/lnd.go index cccf30e61..ddce659af 100644 --- a/lnd.go +++ b/lnd.go @@ -269,7 +269,6 @@ func Main(cfg *Config, lisCfg ListenerCfg, shutdownChan <-chan struct{}) error { chanDbBackend, channeldb.OptionSetRejectCacheSize(cfg.Caches.RejectCacheSize), channeldb.OptionSetChannelCacheSize(cfg.Caches.ChannelCacheSize), - channeldb.OptionSetSyncFreelist(cfg.SyncFreelist), channeldb.OptionDryRunMigration(cfg.DryRunMigration), ) switch {