Compare commits

...

2 Commits

Author SHA1 Message Date
Artem Vorotnikov
8ca8089e9b v3.0.1 2020-06-01 18:41:09 +03:00
Artem Vorotnikov
c4892cefbe Add missing forks to fork ID (#11747) 2020-06-01 18:37:13 +03:00
5 changed files with 35 additions and 3 deletions

View File

@@ -1,3 +1,7 @@
## OpenEthereum [v3.0.1](https://github.com/openethereum/openethereum/releases/tag/v3.0.1)
- Add missing forks to fork ID (#11747)
## OpenEthereum [v3.0.0](https://github.com/openethereum/openethereum/releases/tag/v3.0.0)
OpenEthereum v3.0.0 is the first release of OpenEthereum client as part of OpenEthereum project, divested from Parity Technologies.

View File

@@ -2,7 +2,7 @@
description = "OpenEthereum"
name = "openethereum"
# NOTE Make sure to update util/version/Cargo.toml as well
version = "3.0.0"
version = "3.0.1"
license = "GPL-3.0"
authors = [
"OpenEthereum developers",

View File

@@ -406,6 +406,7 @@ impl Spec {
params.eip1344_transition,
params.eip1884_transition,
params.eip2028_transition,
params.eip2046_transition,
params.eip2200_advance_transition,
params.dust_protection_transition,
params.wasm_activation_transition,
@@ -425,7 +426,17 @@ impl Spec {
ethjson::spec::Engine::Null(null) => Arc::new(NullEngine::new(null.params.into(), machine)),
ethjson::spec::Engine::Ethash(ethash) => {
// Specific transitions for Ethash-based networks
for block in &[ethash.params.homestead_transition, ethash.params.dao_hardfork_transition] {
for block in &[
ethash.params.homestead_transition,
ethash.params.dao_hardfork_transition,
ethash.params.difficulty_hardfork_transition,
ethash.params.bomb_defuse_transition,
ethash.params.eip100b_transition,
ethash.params.ecip1010_pause_transition,
ethash.params.ecip1010_continue_transition,
ethash.params.ecip1017_era_rounds,
ethash.params.expip2_transition,
] {
if let Some(block) = *block {
hard_forks.insert(block.into());
}

View File

@@ -140,4 +140,21 @@ mod tests {
],
)
}
#[test]
fn classic_spec() {
test_spec(
|| spec::new_classic(&String::new()),
vec![
1150000,
2500000,
3000000,
5000000,
5900000,
8772000,
9573000,
10500839,
],
)
}
}

View File

@@ -3,7 +3,7 @@
[package]
name = "parity-version"
# NOTE: this value is used for the OpenEthereum version string (via env CARGO_PKG_VERSION)
version = "3.0.0"
version = "3.0.1"
authors = ["Parity Technologies <admin@parity.io>"]
build = "build.rs"