Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Commit bb0c08f

Browse files
chemeandresilva
authored andcommitted
Add constantinople conf to EvmTestClient. (#9570)
* Add constantinople conf to EvmTestClient. * Skip some test to update submodule etheureum/tests submodule to latest. * Put skipping 'under issue' test behind a feature. * Change blockReward for const-test to pass ethereum/tests * Update tests to new constantinple definition (change of reward at block 5). Switch 'reference' to string, that way we can include issues from others repo (more flexible)Update tests to new constantinple definition (change of reward at block 5). Switch 'reference' to string, that way we can include issues from others repo (more flexible). * Fix modexp and bn128_mul gas prices in chain config * Changes `run_test_path` method to append its directory results (without that it stop testing at the first file failure). Add some missing tests. Add skip for those (block create2 is one hundred percent false but on hive we can see that geth and aleth got similar issue for this item). * retab current.json * Update reference to parity issue for failing tests.
1 parent 4ca7ad7 commit bb0c08f

File tree

13 files changed

+544
-11
lines changed

13 files changed

+544
-11
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ daemonize = { git = "https://github.com/paritytech/daemonize" }
8989
[features]
9090
miner-debug = ["ethcore/miner-debug"]
9191
json-tests = ["ethcore/json-tests"]
92+
ci-skip-issue = ["ethcore/ci-skip-issue"]
9293
test-heavy = ["ethcore/test-heavy"]
9394
evm-debug = ["ethcore/evm-debug"]
9495
evm-debug-tests = ["ethcore/evm-debug-tests"]

ethcore/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ evm-debug-tests = ["evm-debug", "evm/evm-debug-tests"]
102102
slow-blocks = []
103103
# Run JSON consensus tests.
104104
json-tests = ["ethcore-transaction/json-tests", "test-helpers", "tempdir"]
105+
# Skip JSON consensus tests with pending issues.
106+
ci-skip-issue = []
105107
# Run memory/cpu heavy tests.
106108
test-heavy = []
107109
# Compile benches

ethcore/res/ethereum/constantinople_test.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
"minimumDifficulty": "0x020000",
77
"difficultyBoundDivisor": "0x0800",
88
"durationLimit": "0x0d",
9-
"blockReward": "0x1BC16D674EC80000",
9+
"blockReward": "0x29A2241AF62C0000",
1010
"homesteadTransition": "0x0",
1111
"eip100bTransition": "0x0",
12-
"eip649Transition": "0x0",
12+
"eip649Transition": "0x5",
1313
"eip649Reward": "0x1BC16D674EC80000",
14-
"eip1234Transition": "0x0",
14+
"eip1234Transition": "0x5",
1515
"eip1234Reward": "0x1BC16D674EC80000"
1616
}
1717
}
@@ -59,9 +59,9 @@
5959
"0000000000000000000000000000000000000002": { "balance": "1", "builtin": { "name": "sha256", "pricing": { "linear": { "base": 60, "word": 12 } } } },
6060
"0000000000000000000000000000000000000003": { "balance": "1", "builtin": { "name": "ripemd160", "pricing": { "linear": { "base": 600, "word": 120 } } } },
6161
"0000000000000000000000000000000000000004": { "balance": "1", "builtin": { "name": "identity", "pricing": { "linear": { "base": 15, "word": 3 } } } },
62-
"0000000000000000000000000000000000000005": { "builtin": { "name": "modexp", "activate_at": "0x00", "pricing": { "modexp": { "divisor": 100 } } } },
62+
"0000000000000000000000000000000000000005": { "builtin": { "name": "modexp", "activate_at": "0x00", "pricing": { "modexp": { "divisor": 20 } } } },
6363
"0000000000000000000000000000000000000006": { "builtin": { "name": "alt_bn128_add", "activate_at": "0x00", "pricing": { "linear": { "base": 500, "word": 0 } } } },
64-
"0000000000000000000000000000000000000007": { "builtin": { "name": "alt_bn128_mul", "activate_at": "0x00", "pricing": { "linear": { "base": 2000, "word": 0 } } } },
64+
"0000000000000000000000000000000000000007": { "builtin": { "name": "alt_bn128_mul", "activate_at": "0x00", "pricing": { "linear": { "base": 40000, "word": 0 } } } },
6565
"0000000000000000000000000000000000000008": { "builtin": { "name": "alt_bn128_pairing", "activate_at": "0x00", "pricing": { "alt_bn128_pairing": { "base": 100000, "pair": 80000 } } } }
6666
}
6767
}

ethcore/res/ethereum/tests

Submodule tests updated 369 files

0 commit comments

Comments
 (0)