Sealed blockstore

This commit is contained in:
Łukasz Magiera
2019-08-29 17:48:19 +02:00
parent 24fb5ca624
commit 9691211df1
10 changed files with 320 additions and 121 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ func (sm *StorageMinerAPI) StoreGarbageData(ctx context.Context) (uint64, error)
size := uint64(1016) // this is the most data we can fit in a 1024 byte sector
name := fmt.Sprintf("fake-file-%d", rand.Intn(100000000))
sectorId, err := sm.Sectors.AddPiece(name, size, io.LimitReader(rand.New(rand.NewSource(42)), 1016), 0)
sectorId, err := sm.Sectors.AddPiece(name, size, io.LimitReader(rand.New(rand.NewSource(42)), 1016))
if err != nil {
return 0, err
}