the doneset is for dropping sectors

This commit is contained in:
whyrusleeping 2019-10-04 12:30:30 -06:00
parent 7f1c90cc7b
commit f9ac86ab00
3 changed files with 3 additions and 3 deletions

View File

@ -349,7 +349,7 @@ func (sma StorageMinerActor) SubmitPoSt(act *types.Actor, vmctx types.VMContext,
randHeight := currentProvingPeriodEnd - build.PoSTChallangeTime
if vmctx.BlockHeight() <= randHeight {
// TODO: spec, retcode
return nil, aerrors.New(1, "submit PoSt called outside submission window")
return nil, aerrors.Newf(1, "submit PoSt called outside submission window (%d < %d)", vmctx.BlockHeight(), randHeight)
}
rand, err := vmctx.GetRandomness(randHeight)

View File

@ -471,7 +471,7 @@ func (vm *VM) ApplyMessage(ctx context.Context, msg *types.Message) (*ApplyRet,
return nil, xerrors.Errorf("fatal error: %w", actorErr)
}
if actorErr != nil {
log.Warn("Send actor error: %s", actorErr)
log.Warn("[%d] Send actor error: %s", vm.blockHeight, actorErr)
}
var errcode uint8

View File

@ -121,7 +121,7 @@ func (m *Miner) computePost(ppe uint64) func(ts *types.TipSet, curH uint64) erro
params := &actors.SubmitPoStParams{
Proof: proof,
DoneSet: types.BitFieldFromSet(sectorIdList(sset)),
DoneSet: types.BitFieldFromSet(nil),
}
enc, aerr := actors.SerializeParams(params)