add (salted) bloom filter liveset

This commit is contained in:
vyzo
2021-03-05 14:46:17 +02:00
parent aba6530411
commit 97abbe1eca
7 changed files with 107 additions and 18 deletions
+3 -3
View File
@@ -611,10 +611,10 @@ func Repo(r repo.Repo) Option {
Override(new(dtypes.UniversalBlockstore), modules.UniversalBlockstore),
If(cfg.EnableSplitstore,
If(cfg.Splitstore.UseLMDBHotstore,
Override(new(dtypes.HotBlockstore), modules.LMDBHotBlockstore)),
If(!cfg.Splitstore.UseLMDBHotstore,
If(cfg.Splitstore.GetHotStoreType() == "badger",
Override(new(dtypes.HotBlockstore), modules.BadgerHotBlockstore)),
If(cfg.Splitstore.GetHotStoreType() == "lmdb",
Override(new(dtypes.HotBlockstore), modules.LMDBHotBlockstore)),
Override(new(dtypes.SplitBlockstore), modules.SplitBlockstore(cfg)),
Override(new(dtypes.ChainBlockstore), modules.ChainSplitBlockstore),
Override(new(dtypes.StateBlockstore), modules.StateSplitBlockstore),