don't print scary errors when miner has no sectors

This commit is contained in:
Łukasz Magiera 2019-11-29 20:14:10 +01:00
parent ad978949db
commit adf71f502c
2 changed files with 3 additions and 2 deletions

View File

@ -492,7 +492,9 @@ func IsRoundWinner(ctx context.Context, ts *types.TipSet, round int64, miner add
if err != nil {
return false, nil, xerrors.Errorf("failed to load proving set for miner: %w", err)
}
log.Warningf("Proving set for miner %s: %s", miner, pset)
if len(pset) == 0 {
return false, nil, nil
}
var sinfos []ffi.PublicSectorInfo
for _, s := range pset {

View File

@ -136,7 +136,6 @@ func (sm *StateManager) computeTipSetState(ctx context.Context, blks []*types.Bl
}
// all block miners created a valid post, go update the actor state
fmt.Println("SUBMIT ELECTION POST TIME", netact.Nonce, b.Height)
postSubmitMsg := &types.Message{
From: actors.NetworkAddress,
Nonce: netact.Nonce,