diff options
author | Martin Holst Swende <martin@swende.se> | 2018-10-06 03:52:05 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2018-10-06 03:52:05 +0800 |
commit | 5b0c9c8ae5f23b760992b6160a59b261be0d09d7 (patch) | |
tree | 3627a462317f516e1ca45e023d5b5d28df49d50d /tests/difficulty_test.go | |
parent | 58e868b759d13a39200b9283278d0c80d58b4b15 (diff) | |
download | dexon-5b0c9c8ae5f23b760992b6160a59b261be0d09d7.tar dexon-5b0c9c8ae5f23b760992b6160a59b261be0d09d7.tar.gz dexon-5b0c9c8ae5f23b760992b6160a59b261be0d09d7.tar.bz2 dexon-5b0c9c8ae5f23b760992b6160a59b261be0d09d7.tar.lz dexon-5b0c9c8ae5f23b760992b6160a59b261be0d09d7.tar.xz dexon-5b0c9c8ae5f23b760992b6160a59b261be0d09d7.tar.zst dexon-5b0c9c8ae5f23b760992b6160a59b261be0d09d7.zip |
tests: use non-constantinople ropsten for difficulty tests (#17850)
This is a stopgap until new tests have been generated and imported.
Diffstat (limited to 'tests/difficulty_test.go')
-rw-r--r-- | tests/difficulty_test.go | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/tests/difficulty_test.go b/tests/difficulty_test.go index 20294cc9d..56c3fc297 100644 --- a/tests/difficulty_test.go +++ b/tests/difficulty_test.go @@ -17,9 +17,8 @@ package tests import ( - "testing" - "math/big" + "testing" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/params" @@ -37,6 +36,20 @@ 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) { @@ -56,7 +69,7 @@ func TestDifficulty(t *testing.T) { dt.skipLoad("difficultyMorden\\.json") dt.skipLoad("difficultyOlimpic\\.json") - dt.config("Ropsten", *params.TestnetChainConfig) + dt.config("Ropsten", RopstenNoConstantinople) dt.config("Morden", *params.TestnetChainConfig) dt.config("Frontier", params.ChainConfig{}) |