Deal flow fixes

This commit is contained in:
Łukasz Magiera 2020-02-23 16:50:36 +01:00
parent d04c304c93
commit 4b4368a898
3 changed files with 5 additions and 5 deletions

View File

@ -9,7 +9,7 @@ import (
"github.com/filecoin-project/specs-actors/actors/abi"
)
type nullReader struct {}
type nullReader struct{}
func (nullReader) Read(out []byte) (int, error) {
for i := range out {

View File

@ -127,13 +127,13 @@ func (m *Sealing) SealPiece(ctx context.Context, size abi.UnpaddedPieceSize, r i
Size: ppi.Size,
CommP: ppi.CommP[:],
},
},)
})
}
func (m *Sealing) newSector(sid abi.SectorNumber, pieces []Piece) error {
log.Infof("Start sealing %d", sid)
return m.sectors.Send(uint64(sid), SectorStart{
id: sid,
id: sid,
pieces: pieces,
})
}

View File

@ -99,8 +99,8 @@ func (m *Sealing) handlePreCommitting(ctx statemachine.Context, sector SectorInf
}
params := &miner.SectorPreCommitInfo{
Expiration: 10000000, // TODO: implement
SectorNumber: sector.SectorID,
Expiration: 10000000, // TODO: implement
SectorNumber: sector.SectorID,
RegisteredProof: abi.RegisteredProof_StackedDRG32GiBSeal,
SealedCID: commcid.ReplicaCommitmentV1ToCID(sector.CommR),