don't ID wrap the hotstore

This commit is contained in:
vyzo 2021-03-02 20:36:17 +02:00
parent d2d0980532
commit 6b8c60a659

View File

@ -63,8 +63,7 @@ func BadgerHotBlockstore(lc fx.Lifecycle, r repo.LockedRepo) (dtypes.HotBlocksto
return bs.Close() return bs.Close()
}}) }})
hot := blockstore.WrapIDStore(bs) return bs, nil
return hot, err
} }
func SplitBlockstore(cfg *config.Chainstore) func(lc fx.Lifecycle, r repo.LockedRepo, ds dtypes.MetadataDS, cold dtypes.UniversalBlockstore, hot dtypes.HotBlockstore) (dtypes.SplitBlockstore, error) { func SplitBlockstore(cfg *config.Chainstore) func(lc fx.Lifecycle, r repo.LockedRepo, ds dtypes.MetadataDS, cold dtypes.UniversalBlockstore, hot dtypes.HotBlockstore) (dtypes.SplitBlockstore, error) {