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

Commit 2a3b321

Browse files
q9fniklasad1
andauthored
validate mainnet specs against all forks (#11625)
* ethcore/res: move test specifications in test-specs subdirectory * ethcore/spec: update paths for test machines * scripts/actions: validate mainnet specs against all forks * fix unexpected end of macro invocation * scripts/actions: remove first empty line Co-Authored-By: Niklas Adolfsson <[email protected]> Co-authored-by: Niklas Adolfsson <[email protected]>
1 parent 4b5e9dd commit 2a3b321

17 files changed

+77
-50
lines changed

ethcore/machine/src/test_helpers.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,31 +35,31 @@ pub fn load_machine(reader: &[u8]) -> Machine {
3535
}
3636

3737
/// Create a new Foundation Frontier-era chain spec as though it never changes to Homestead.
38-
pub fn new_frontier_test_machine() -> Machine { load_machine(include_bytes!("../../res/ethereum/frontier_test.json")) }
38+
pub fn new_frontier_test_machine() -> Machine { load_machine(include_bytes!("../../res/ethereum/test-specs/frontier_test.json")) }
3939

4040
/// Create a new Foundation Homestead-era chain spec as though it never changed from Frontier.
41-
pub fn new_homestead_test_machine() -> Machine { load_machine(include_bytes!("../../res/ethereum/homestead_test.json")) }
41+
pub fn new_homestead_test_machine() -> Machine { load_machine(include_bytes!("../../res/ethereum/test-specs/homestead_test.json")) }
4242

4343
/// Create a new Foundation Homestead-EIP210-era chain spec as though it never changed from Homestead/Frontier.
44-
pub fn new_eip210_test_machine() -> Machine { load_machine(include_bytes!("../../res/ethereum/eip210_test.json")) }
44+
pub fn new_eip210_test_machine() -> Machine { load_machine(include_bytes!("../../res/ethereum/test-specs/eip210_test.json")) }
4545

4646
/// Create a new Foundation Byzantium era spec.
47-
pub fn new_byzantium_test_machine() -> Machine { load_machine(include_bytes!("../../res/ethereum/byzantium_test.json")) }
47+
pub fn new_byzantium_test_machine() -> Machine { load_machine(include_bytes!("../../res/ethereum/test-specs/byzantium_test.json")) }
4848

4949
/// Create a new Foundation Constantinople era spec.
50-
pub fn new_constantinople_test_machine() -> Machine { load_machine(include_bytes!("../../res/ethereum/constantinople_test.json")) }
50+
pub fn new_constantinople_test_machine() -> Machine { load_machine(include_bytes!("../../res/ethereum/test-specs/constantinople_test.json")) }
5151

5252
/// Create a new Foundation St. Peter's (Contantinople Fix) era spec.
53-
pub fn new_constantinople_fix_test_machine() -> Machine { load_machine(include_bytes!("../../res/ethereum/st_peters_test.json")) }
53+
pub fn new_constantinople_fix_test_machine() -> Machine { load_machine(include_bytes!("../../res/ethereum/test-specs/st_peters_test.json")) }
5454

5555
/// Create a new Foundation Istanbul era spec.
56-
pub fn new_istanbul_test_machine() -> Machine { load_machine(include_bytes!("../../res/ethereum/istanbul_test.json")) }
56+
pub fn new_istanbul_test_machine() -> Machine { load_machine(include_bytes!("../../res/ethereum/test-specs/istanbul_test.json")) }
5757

5858
/// Create a new Foundation Berlin era spec.
59-
pub fn new_berlin_test_machine() -> Machine { load_machine(include_bytes!("../../res/ethereum/berlin_test.json")) }
59+
pub fn new_berlin_test_machine() -> Machine { load_machine(include_bytes!("../../res/ethereum/test-specs/berlin_test.json")) }
6060

6161
/// Create a new Musicoin-MCIP3-era spec.
62-
pub fn new_mcip3_test_machine() -> Machine { load_machine(include_bytes!("../../res/ethereum/mcip3_test.json")) }
62+
pub fn new_mcip3_test_machine() -> Machine { load_machine(include_bytes!("../../res/ethereum/test-specs/mcip3_test.json")) }
6363

6464
/// Create new Kovan spec with wasm activated at certain block
65-
pub fn new_kovan_wasm_test_machine() -> Machine { load_machine(include_bytes!("../../res/ethereum/kovan_wasm_test.json")) }
65+
pub fn new_kovan_wasm_test_machine() -> Machine { load_machine(include_bytes!("../../res/ethereum/test-specs/kovan_wasm_test.json")) }

0 commit comments

Comments
 (0)