mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 09:16:00 +00:00
Update ethereum types (#489)
* Update ethereum-types to version 0.6 * Fix tests * Run rustfmt
This commit is contained in:
committed by
Paul Hauner
parent
01054ecf2f
commit
88e89f9ab2
@@ -12,7 +12,7 @@ compare_fields_derive = { path = "../utils/compare_fields_derive" }
|
||||
dirs = "1.0"
|
||||
derivative = "1.0"
|
||||
eth2_interop_keypairs = { path = "../utils/eth2_interop_keypairs" }
|
||||
ethereum-types = "0.5"
|
||||
ethereum-types = "0.6"
|
||||
hashing = { path = "../utils/hashing" }
|
||||
hex = "0.3"
|
||||
int_to_bytes = { path = "../utils/int_to_bytes" }
|
||||
|
||||
@@ -74,7 +74,7 @@ fn shuffles_for_the_right_epoch() {
|
||||
|
||||
let distinct_hashes: Vec<Hash256> = (0..MinimalEthSpec::epochs_per_historical_vector())
|
||||
.into_iter()
|
||||
.map(|i| Hash256::from(i as u64))
|
||||
.map(|i| Hash256::from_low_u64_be(i as u64))
|
||||
.collect();
|
||||
|
||||
state.randao_mixes = FixedVector::from(distinct_hashes);
|
||||
|
||||
@@ -308,7 +308,7 @@ mod committees {
|
||||
|
||||
let distinct_hashes: Vec<Hash256> = (0..T::epochs_per_historical_vector())
|
||||
.into_iter()
|
||||
.map(|i| Hash256::from(i as u64))
|
||||
.map(|i| Hash256::from_low_u64_be(i as u64))
|
||||
.collect();
|
||||
state.randao_mixes = FixedVector::from(distinct_hashes);
|
||||
|
||||
|
||||
@@ -9,6 +9,6 @@ tree_hash_derive = { path = "../tree_hash_derive" }
|
||||
|
||||
[dependencies]
|
||||
tree_hash = { path = "../tree_hash" }
|
||||
ethereum-types = "0.5"
|
||||
ethereum-types = "0.6"
|
||||
hashing = { path = "../hashing" }
|
||||
int_to_bytes = { path = "../int_to_bytes" }
|
||||
|
||||
@@ -5,5 +5,5 @@ authors = ["Michael Sproul <michael@sigmaprime.io>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
ethereum-types = "0.5"
|
||||
ethereum-types = "0.6"
|
||||
hashing = { path = "../hashing" }
|
||||
|
||||
@@ -13,4 +13,4 @@ name = "ssz"
|
||||
eth2_ssz_derive = "0.1.0"
|
||||
|
||||
[dependencies]
|
||||
ethereum-types = "0.5"
|
||||
ethereum-types = "0.6"
|
||||
|
||||
@@ -9,7 +9,7 @@ publish = false
|
||||
cargo-fuzz = true
|
||||
|
||||
[dependencies]
|
||||
ethereum-types = "0.5"
|
||||
ethereum-types = "0.6"
|
||||
|
||||
[dependencies.ssz]
|
||||
path = ".."
|
||||
|
||||
@@ -12,7 +12,7 @@ harness = false
|
||||
criterion = "0.2"
|
||||
yaml-rust = "0.4.2"
|
||||
hex = "0.3"
|
||||
ethereum-types = "0.5"
|
||||
ethereum-types = "0.6"
|
||||
|
||||
[dependencies]
|
||||
hashing = { path = "../hashing" }
|
||||
|
||||
@@ -15,7 +15,7 @@ tree_hash_derive = { path = "../tree_hash_derive" }
|
||||
types = { path = "../../types" }
|
||||
|
||||
[dependencies]
|
||||
ethereum-types = "0.5"
|
||||
ethereum-types = "0.6"
|
||||
hashing = { path = "../hashing" }
|
||||
int_to_bytes = { path = "../int_to_bytes" }
|
||||
lazy_static = "0.1"
|
||||
|
||||
Reference in New Issue
Block a user