aboutsummaryrefslogtreecommitdiffstats
path: root/tests/difficulty_test.go
diff options
context:
space:
mode:
authorMartin Holst Swende <martin@swende.se>2018-10-16 06:26:47 +0800
committerFelix Lange <fjl@users.noreply.github.com>2018-10-16 06:26:47 +0800
commit60827dc50fc0892f63fc79704c57b45cf34f991e (patch)
tree351d66c284989acde5f368f1e5f29890ce96894b /tests/difficulty_test.go
parent2e98631c5e5724bea1a29b877929b4911bf50b86 (diff)
downloaddexon-60827dc50fc0892f63fc79704c57b45cf34f991e.tar
dexon-60827dc50fc0892f63fc79704c57b45cf34f991e.tar.gz
dexon-60827dc50fc0892f63fc79704c57b45cf34f991e.tar.bz2
dexon-60827dc50fc0892f63fc79704c57b45cf34f991e.tar.lz
dexon-60827dc50fc0892f63fc79704c57b45cf34f991e.tar.xz
dexon-60827dc50fc0892f63fc79704c57b45cf34f991e.tar.zst
dexon-60827dc50fc0892f63fc79704c57b45cf34f991e.zip
tests: update tests, implement no-pow blocks (#17902)
This commit updates our tests with the latest and greatest from ethereum/tests. It also contains implementation of NoProof for blockchain tests.
Diffstat (limited to 'tests/difficulty_test.go')
-rw-r--r--tests/difficulty_test.go19
1 files changed, 4 insertions, 15 deletions
diff --git a/tests/difficulty_test.go b/tests/difficulty_test.go
index 56c3fc297..fde9db3ad 100644
--- a/tests/difficulty_test.go
+++ b/tests/difficulty_test.go
@@ -36,20 +36,6 @@ var (
EIP158Block: big.NewInt(2675000),
ByzantiumBlock: big.NewInt(4370000),
}
-
- // Ropsten without the Constantinople bump in bomb delay
- RopstenNoConstantinople = params.ChainConfig{
- ChainID: big.NewInt(3),
- HomesteadBlock: big.NewInt(0),
- DAOForkBlock: nil,
- DAOForkSupport: true,
- EIP150Block: big.NewInt(0),
- EIP150Hash: common.HexToHash("0x41941023680923e0fe4d74a34bdac8141f2540e3ae90623718e47d66d1ca4a2d"),
- EIP155Block: big.NewInt(10),
- EIP158Block: big.NewInt(10),
- ByzantiumBlock: big.NewInt(1700000),
- ConstantinopleBlock: nil,
- }
)
func TestDifficulty(t *testing.T) {
@@ -69,7 +55,7 @@ func TestDifficulty(t *testing.T) {
dt.skipLoad("difficultyMorden\\.json")
dt.skipLoad("difficultyOlimpic\\.json")
- dt.config("Ropsten", RopstenNoConstantinople)
+ dt.config("Ropsten", *params.TestnetChainConfig)
dt.config("Morden", *params.TestnetChainConfig)
dt.config("Frontier", params.ChainConfig{})
@@ -84,6 +70,9 @@ func TestDifficulty(t *testing.T) {
dt.config("Frontier", *params.TestnetChainConfig)
dt.config("MainNetwork", mainnetChainConfig)
dt.config("CustomMainNetwork", mainnetChainConfig)
+ dt.config("Constantinople", params.ChainConfig{
+ ConstantinopleBlock: big.NewInt(0),
+ })
dt.config("difficulty.json", mainnetChainConfig)
dt.walk(t, difficultyTestDir, func(t *testing.T, name string, test *DifficultyTest) {