Some param changes

This commit is contained in:
Łukasz Magiera 2019-11-05 17:15:52 +01:00
parent daabe470a4
commit 1f56bcf581
2 changed files with 6 additions and 3 deletions

View File

@ -55,7 +55,7 @@ const Finality = 500
// Proofs
// Blocks
const ProvingPeriodDuration = 60
const ProvingPeriodDuration = 300
// PoStChallangeTime sets the window in which post computation should happen
// Blocks
@ -71,6 +71,9 @@ const PoStRandomnessLookback = 1
// Blocks
const SealRandomnessLookback = Finality
// Blocks
const SealRandomnessLookbackLimit = SealRandomnessLookback + 2000
// /////
// Mining

View File

@ -231,8 +231,8 @@ func (sma StorageMinerActor) PreCommitSector(act *types.Actor, vmctx types.VMCon
return nil, aerrors.Newf(1, "sector commitment must be based off past randomness (%d >= %d)", params.Epoch, vmctx.BlockHeight()+build.SealRandomnessLookback)
}
if vmctx.BlockHeight()-params.Epoch+build.SealRandomnessLookback > 1000 {
return nil, aerrors.New(2, "sector commitment must be recent enough")
if vmctx.BlockHeight()-params.Epoch+build.SealRandomnessLookback > build.SealRandomnessLookbackLimit {
return nil, aerrors.Newf(2, "sector commitment must be recent enough (was %d)", vmctx.BlockHeight()-params.Epoch+build.SealRandomnessLookback)
}
mi, err := loadMinerInfo(vmctx, self)