use memory blockstore for miner manifest loading

This commit is contained in:
vyzo
2022-04-14 19:34:26 +03:00
parent 507b835a9c
commit 6bd2d89e30
3 changed files with 7 additions and 5 deletions
+4
View File
@@ -37,6 +37,10 @@ func UniversalBlockstore(lc fx.Lifecycle, mctx helpers.MetricsCtx, r repo.Locked
return bs, err
}
func MemoryBlockstore() dtypes.UniversalBlockstore {
return blockstore.NewMemory()
}
func DiscardColdBlockstore(lc fx.Lifecycle, bs dtypes.UniversalBlockstore) (dtypes.ColdBlockstore, error) {
return blockstore.NewDiscardStore(bs), nil
}