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

Commit d4733b8

Browse files
authored
Add missing forks to fork ID (#11747)
1 parent b3d54f0 commit d4733b8

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

ethcore/spec/src/spec.rs

+12-1
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,7 @@ impl Spec {
406406
params.eip1344_transition,
407407
params.eip1884_transition,
408408
params.eip2028_transition,
409+
params.eip2046_transition,
409410
params.eip2200_advance_transition,
410411
params.eip2315_transition,
411412
params.dust_protection_transition,
@@ -426,7 +427,17 @@ impl Spec {
426427
ethjson::spec::Engine::Null(null) => Arc::new(NullEngine::new(null.params.into(), machine)),
427428
ethjson::spec::Engine::Ethash(ethash) => {
428429
// Specific transitions for Ethash-based networks
429-
for block in &[ethash.params.homestead_transition, ethash.params.dao_hardfork_transition] {
430+
for block in &[
431+
ethash.params.homestead_transition,
432+
ethash.params.dao_hardfork_transition,
433+
ethash.params.difficulty_hardfork_transition,
434+
ethash.params.bomb_defuse_transition,
435+
ethash.params.eip100b_transition,
436+
ethash.params.ecip1010_pause_transition,
437+
ethash.params.ecip1010_continue_transition,
438+
ethash.params.ecip1017_era_rounds,
439+
ethash.params.expip2_transition,
440+
] {
430441
if let Some(block) = *block {
431442
hard_forks.insert(block.into());
432443
}

ethcore/sync/src/chain/fork_filter.rs

+17
Original file line numberDiff line numberDiff line change
@@ -140,4 +140,21 @@ mod tests {
140140
],
141141
)
142142
}
143+
144+
#[test]
145+
fn classic_spec() {
146+
test_spec(
147+
|| spec::new_classic(&String::new()),
148+
vec![
149+
1150000,
150+
2500000,
151+
3000000,
152+
5000000,
153+
5900000,
154+
8772000,
155+
9573000,
156+
10500839,
157+
],
158+
)
159+
}
143160
}

0 commit comments

Comments
 (0)