add some more policy toggles for testground
This commit is contained in:
parent
9621dbb4f1
commit
17846aad2f
@ -97,3 +97,13 @@ func DealProviderCollateralBounds(
|
|||||||
panic("unsupported network version")
|
panic("unsupported network version")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Sets the challenge window and scales the proving period to match (such that
|
||||||
|
// there are always 48 challenge windows in a proving period).
|
||||||
|
func SetWPoStChallengeWindow(period abi.ChainEpoch) {
|
||||||
|
miner0.WPoStChallengeWindow = period
|
||||||
|
miner0.WPoStProvingPeriod = period * abi.ChainEpoch(miner0.WPoStPeriodDeadlines)
|
||||||
|
|
||||||
|
miner2.WPoStChallengeWindow = period
|
||||||
|
miner2.WPoStProvingPeriod = period * abi.ChainEpoch(miner2.WPoStPeriodDeadlines)
|
||||||
|
}
|
||||||
|
@ -43,5 +43,8 @@ func TestAssumptions(t *testing.T) {
|
|||||||
require.EqualValues(t, miner0.SupportedProofTypes, miner2.SupportedProofTypes)
|
require.EqualValues(t, miner0.SupportedProofTypes, miner2.SupportedProofTypes)
|
||||||
require.Equal(t, miner0.PreCommitChallengeDelay, miner2.PreCommitChallengeDelay)
|
require.Equal(t, miner0.PreCommitChallengeDelay, miner2.PreCommitChallengeDelay)
|
||||||
require.Equal(t, miner0.ChainFinality, miner2.ChainFinality)
|
require.Equal(t, miner0.ChainFinality, miner2.ChainFinality)
|
||||||
|
require.Equal(t, miner0.WPoStChallengeWindow, miner2.WPoStChallengeWindow)
|
||||||
|
require.Equal(t, miner0.WPoStProvingPeriod, miner2.WPoStProvingPeriod)
|
||||||
|
require.Equal(t, miner0.WPoStPeriodDeadlines, miner2.WPoStPeriodDeadlines)
|
||||||
require.True(t, verifreg0.MinVerifiedDealSize.Equals(verifreg2.MinVerifiedDealSize))
|
require.True(t, verifreg0.MinVerifiedDealSize.Equals(verifreg2.MinVerifiedDealSize))
|
||||||
}
|
}
|
||||||
|
2
extern/oni
vendored
2
extern/oni
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 9a0d5cd739de77b357589ac1fc8b756ed27299be
|
Subproject commit a5b57068d4c2ee0fda76f053edf9825613d1fe9b
|
Loading…
Reference in New Issue
Block a user