Cleanup sectorinfo struct

This commit is contained in:
Łukasz Magiera 2019-12-09 16:42:47 +01:00
parent e3d1f5b362
commit 1d7dd4711d
2 changed files with 4 additions and 6 deletions

View File

@ -56,10 +56,8 @@ type SectorInfo struct {
Pieces []Piece
// PreCommit
Pad0 []byte // TODO: legacy placeholder, remove
CommD []byte
CommR []byte
Pad1 []byte // TODO: legacy placeholder, remove
Proof []byte
Ticket SealTicket

View File

@ -247,13 +247,13 @@ func (m *Miner) onSectorUpdated(ctx context.Context, update sectorUpdate) {
// Handled failure modes
case api.SealFailed:
log.Warn("sector %d entered unimplemented state 'SealFailed'", update.id)
log.Warnf("sector %d entered unimplemented state 'SealFailed'", update.id)
case api.PreCommitFailed:
log.Warn("sector %d entered unimplemented state 'PreCommitFailed'", update.id)
log.Warnf("sector %d entered unimplemented state 'PreCommitFailed'", update.id)
case api.SealCommitFailed:
log.Warn("sector %d entered unimplemented state 'SealCommitFailed'", update.id)
log.Warnf("sector %d entered unimplemented state 'SealCommitFailed'", update.id)
case api.CommitFailed:
log.Warn("sector %d entered unimplemented state 'CommitFailed'", update.id)
log.Warnf("sector %d entered unimplemented state 'CommitFailed'", update.id)
// Fatal errors
case api.UndefinedSectorState: