From 8308ea4932d4ce4d320d3c91a08aad1cb31d931b Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Sat, 29 Dec 2018 14:35:03 +1100 Subject: [PATCH] Fix old instances of shards being u16 --- beacon_chain/chain/src/maps.rs | 2 +- beacon_chain/types/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/beacon_chain/chain/src/maps.rs b/beacon_chain/chain/src/maps.rs index cecd87c8d..4c737cb44 100644 --- a/beacon_chain/chain/src/maps.rs +++ b/beacon_chain/chain/src/maps.rs @@ -45,7 +45,7 @@ mod tests { use super::*; fn sac_generator( - shard_count: u16, + shard_count: u64, slot_count: usize, sac_per_slot: usize, committee_size: usize, diff --git a/beacon_chain/types/src/lib.rs b/beacon_chain/types/src/lib.rs index a4f52701a..08b871c1c 100644 --- a/beacon_chain/types/src/lib.rs +++ b/beacon_chain/types/src/lib.rs @@ -65,7 +65,7 @@ pub type Bitfield = boolean_bitfield::BooleanBitfield; pub type BitfieldError = boolean_bitfield::Error; /// Maps a (slot, shard_id) to attestation_indices. -pub type AttesterMap = HashMap<(u64, u16), Vec>; +pub type AttesterMap = HashMap<(u64, u64), Vec>; /// Maps a slot to a block proposer. pub type ProposerMap = HashMap;