add ropsten difficulty test
This commit is contained in:
parent
87bae2bb78
commit
5ca7370407
File diff suppressed because it is too large
Load Diff
|
@ -65,6 +65,10 @@ proc difficultyMain*() =
|
||||||
func calcDifficultyMainNetWork(timeStamp: EthTime, parent: BlockHeader): DifficultyInt =
|
func calcDifficultyMainNetWork(timeStamp: EthTime, parent: BlockHeader): DifficultyInt =
|
||||||
mainnetConfig.calcDifficulty(timeStamp, parent)
|
mainnetConfig.calcDifficulty(timeStamp, parent)
|
||||||
|
|
||||||
|
let ropstenConfig = publicChainConfig(RopstenNet)
|
||||||
|
func calcDifficultyRopsten(timeStamp: EthTime, parent: BlockHeader): DifficultyInt =
|
||||||
|
ropstenConfig.calcDifficulty(timeStamp, parent)
|
||||||
|
|
||||||
suite "DifficultyTest":
|
suite "DifficultyTest":
|
||||||
runTests("EIP2384_random_to20M", true, calcDifficultyGlacierMuir)
|
runTests("EIP2384_random_to20M", true, calcDifficultyGlacierMuir)
|
||||||
runTests("EIP2384_random", true, calcDifficultyGlacierMuir)
|
runTests("EIP2384_random", true, calcDifficultyGlacierMuir)
|
||||||
|
@ -75,6 +79,7 @@ proc difficultyMain*() =
|
||||||
runTests("MainNetwork", true, calcDifficultyMainNetwork)
|
runTests("MainNetwork", true, calcDifficultyMainNetwork)
|
||||||
runTests("Frontier", true, calcDifficultyFrontier)
|
runTests("Frontier", true, calcDifficultyFrontier)
|
||||||
runTests("", false, calcDifficultyMainNetWork)
|
runTests("", false, calcDifficultyMainNetWork)
|
||||||
|
runTests("Ropsten", true, calcDifficultyRopsten)
|
||||||
|
|
||||||
when isMainModule:
|
when isMainModule:
|
||||||
difficultyMain()
|
difficultyMain()
|
||||||
|
|
Loading…
Reference in New Issue