Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "witnet"
version = "2.0.4"
version = "2.0.5"
authors = ["Witnet Foundation <[email protected]>"]
publish = false
repository = "witnet/witnet-rust"
Expand Down
2 changes: 1 addition & 1 deletion bridges/centralized-ethereum/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "witnet-centralized-ethereum-bridge"
version = "2.0.4"
version = "2.0.5"
authors = ["Witnet Foundation <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion data_structures/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ authors = ["Witnet Foundation <[email protected]>"]
description = "data structures component"
edition = "2021"
name = "witnet_data_structures"
version = "2.0.4"
version = "2.0.5"
workspace = ".."

[features]
Expand Down
9 changes: 8 additions & 1 deletion data_structures/src/chain/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion node/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "witnet_node"
version = "2.0.4"
version = "2.0.5"
authors = ["Witnet Foundation <[email protected]>"]
workspace = ".."
description = "node component"
Expand Down
2 changes: 1 addition & 1 deletion toolkit/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "witnet_toolkit"
version = "2.0.4"
version = "2.0.5"
authors = ["Adán SDPC <[email protected]>"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion wallet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
authors = ["Witnet Foundation <[email protected]>"]
edition = "2021"
name = "witnet_wallet"
version = "2.0.4"
version = "2.0.5"
workspace = ".."

[dependencies]
Expand Down
12 changes: 4 additions & 8 deletions wallet/src/actors/worker/methods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down
Loading