mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-30 03:03:45 +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
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user