diff --git a/Cargo.lock b/Cargo.lock index a7abdf82e..4450779bc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5607,7 +5607,7 @@ dependencies = [ [[package]] name = "witnet" -version = "2.0.4" +version = "2.0.5" dependencies = [ "ansi_term", "bytecount", @@ -5655,7 +5655,7 @@ dependencies = [ [[package]] name = "witnet-centralized-ethereum-bridge" -version = "2.0.4" +version = "2.0.5" dependencies = [ "actix", "async-jsonrpc-client", @@ -5721,7 +5721,7 @@ dependencies = [ [[package]] name = "witnet_data_structures" -version = "2.0.4" +version = "2.0.5" dependencies = [ "bech32", "bencher", @@ -5788,7 +5788,7 @@ dependencies = [ [[package]] name = "witnet_node" -version = "2.0.4" +version = "2.0.5" dependencies = [ "actix", "ansi_term", @@ -5897,7 +5897,7 @@ dependencies = [ [[package]] name = "witnet_toolkit" -version = "2.0.4" +version = "2.0.5" dependencies = [ "failure", "hex", @@ -5942,7 +5942,7 @@ dependencies = [ [[package]] name = "witnet_wallet" -version = "2.0.4" +version = "2.0.5" dependencies = [ "actix", "async-jsonrpc-client", diff --git a/Cargo.toml b/Cargo.toml index 9f6009c94..8d73a01db 100755 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "witnet" -version = "2.0.4" +version = "2.0.5" authors = ["Witnet Foundation "] publish = false repository = "witnet/witnet-rust" diff --git a/bridges/centralized-ethereum/Cargo.toml b/bridges/centralized-ethereum/Cargo.toml index d2d0cd5a0..cb65071cc 100644 --- a/bridges/centralized-ethereum/Cargo.toml +++ b/bridges/centralized-ethereum/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "witnet-centralized-ethereum-bridge" -version = "2.0.4" +version = "2.0.5" authors = ["Witnet Foundation "] edition = "2018" diff --git a/data_structures/Cargo.toml b/data_structures/Cargo.toml index 281b355f8..126568bfe 100644 --- a/data_structures/Cargo.toml +++ b/data_structures/Cargo.toml @@ -3,7 +3,7 @@ authors = ["Witnet Foundation "] description = "data structures component" edition = "2021" name = "witnet_data_structures" -version = "2.0.4" +version = "2.0.5" workspace = ".." [features] diff --git a/data_structures/src/chain/mod.rs b/data_structures/src/chain/mod.rs index 5a1990b2c..7409aea63 100644 --- a/data_structures/src/chain/mod.rs +++ b/data_structures/src/chain/mod.rs @@ -324,7 +324,14 @@ impl ConsensusConstantsWit2 { /// Maximum weight units that a block can devote to `StakeTransaction`s. pub fn get_maximum_stake_block_weight(self, epoch: Epoch) -> u32 { if get_protocol_version(Some(epoch)) > ProtocolVersion::V1_7 { - 20_000 + match get_environment() { + Environment::Testnet => { + 10_000_000 + } + _ => { + 20_000 + } + } } else { 0 } diff --git a/node/Cargo.toml b/node/Cargo.toml index 3d3c4dc67..a3b3f04d2 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "witnet_node" -version = "2.0.4" +version = "2.0.5" authors = ["Witnet Foundation "] workspace = ".." description = "node component" diff --git a/toolkit/Cargo.toml b/toolkit/Cargo.toml index da95a0a24..0dcb6a7d4 100644 --- a/toolkit/Cargo.toml +++ b/toolkit/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "witnet_toolkit" -version = "2.0.4" +version = "2.0.5" authors = ["Adán SDPC "] edition = "2021" diff --git a/wallet/Cargo.toml b/wallet/Cargo.toml index 562a4c5ce..790e6b60f 100644 --- a/wallet/Cargo.toml +++ b/wallet/Cargo.toml @@ -2,7 +2,7 @@ authors = ["Witnet Foundation "] edition = "2021" name = "witnet_wallet" -version = "2.0.4" +version = "2.0.5" workspace = ".." [dependencies] diff --git a/wallet/src/actors/worker/methods.rs b/wallet/src/actors/worker/methods.rs index 24442d6a5..616cf5878 100644 --- a/wallet/src/actors/worker/methods.rs +++ b/wallet/src/actors/worker/methods.rs @@ -1067,15 +1067,11 @@ impl Worker { (true, false) } else if block_beacon.checkpoint == 3048961 && block_beacon.hash_prev_block - == witnet_data_structures::chain::Hash::from(Vec::from( - hex::decode("f83b42c391bbc2084651c3258af6f6830574e405c146ebe0989990c1071acf54") - .unwrap(), - )) + == witnet_data_structures::chain::Hash::from(hex::decode("f83b42c391bbc2084651c3258af6f6830574e405c146ebe0989990c1071acf54") + .unwrap()) && last_sync.hash_prev_block - == witnet_data_structures::chain::Hash::from(Vec::from( - hex::decode("1a36ef15698405b5f9ea3b42efcf7469a4b4572a7826f7c9855835c0adf233cd") - .unwrap(), - )) + == witnet_data_structures::chain::Hash::from(hex::decode("1a36ef15698405b5f9ea3b42efcf7469a4b4572a7826f7c9855835c0adf233cd") + .unwrap()) { log::warn!("Dealing with special V1_7 → V1_8 synchronization case");