storageminer: log flag for sector status

This commit is contained in:
Łukasz Magiera 2020-01-23 15:18:05 +01:00
parent 9d0d15d51c
commit 3ec83f2318
2 changed files with 3 additions and 3 deletions

View File

@ -87,8 +87,8 @@ func checkSeal(ctx context.Context, maddr address.Address, si SectorInfo, api se
return ErrBadCommD(xerrors.Errorf("on chain CommD differs from sector: %x != %x", r.Return, si.CommD))
}
if int64(head.Height()) - int64(si.Ticket.BlockHeight + build.SealRandomnessLookback) > build.SealRandomnessLookbackLimit {
return ErrExpiredTicket(xerrors.Errorf("ticket expired: seal height: %d, head: %d", si.Ticket.BlockHeight + build.SealRandomnessLookback, head.Height()))
if int64(head.Height())-int64(si.Ticket.BlockHeight+build.SealRandomnessLookback) > build.SealRandomnessLookbackLimit {
return ErrExpiredTicket(xerrors.Errorf("ticket expired: seal height: %d, head: %d", si.Ticket.BlockHeight+build.SealRandomnessLookback, head.Height()))
}
return nil

View File

@ -52,7 +52,7 @@ type Log struct {
Message string
// additional data (Event info)
Kind string
Kind string
}
type SectorInfo struct {