Merge pull request #278 from filecoin-project/fix/dont-drop-sectors
the doneset is for dropping sectors
This commit is contained in:
commit
83ff9da9ef
@ -349,7 +349,7 @@ func (sma StorageMinerActor) SubmitPoSt(act *types.Actor, vmctx types.VMContext,
|
|||||||
randHeight := currentProvingPeriodEnd - build.PoSTChallangeTime
|
randHeight := currentProvingPeriodEnd - build.PoSTChallangeTime
|
||||||
if vmctx.BlockHeight() <= randHeight {
|
if vmctx.BlockHeight() <= randHeight {
|
||||||
// TODO: spec, retcode
|
// 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)
|
rand, err := vmctx.GetRandomness(randHeight)
|
||||||
|
@ -471,7 +471,7 @@ func (vm *VM) ApplyMessage(ctx context.Context, msg *types.Message) (*ApplyRet,
|
|||||||
return nil, xerrors.Errorf("fatal error: %w", actorErr)
|
return nil, xerrors.Errorf("fatal error: %w", actorErr)
|
||||||
}
|
}
|
||||||
if actorErr != nil {
|
if actorErr != nil {
|
||||||
log.Warn("Send actor error: %s", actorErr)
|
log.Warn("[%d] Send actor error: %s", vm.blockHeight, actorErr)
|
||||||
}
|
}
|
||||||
|
|
||||||
var errcode uint8
|
var errcode uint8
|
||||||
|
@ -121,7 +121,7 @@ func (m *Miner) computePost(ppe uint64) func(ts *types.TipSet, curH uint64) erro
|
|||||||
|
|
||||||
params := &actors.SubmitPoStParams{
|
params := &actors.SubmitPoStParams{
|
||||||
Proof: proof,
|
Proof: proof,
|
||||||
DoneSet: types.BitFieldFromSet(sectorIdList(sset)),
|
DoneSet: types.BitFieldFromSet(nil),
|
||||||
}
|
}
|
||||||
|
|
||||||
enc, aerr := actors.SerializeParams(params)
|
enc, aerr := actors.SerializeParams(params)
|
||||||
|
Loading…
Reference in New Issue
Block a user