Some param changes
This commit is contained in:
parent
daabe470a4
commit
1f56bcf581
@ -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
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user