Update some shard u16 to u64

This is pretty hacky, is just serving my purpose for `BeaconChain`.
These structs will need to be fully updated to the latest spec.
This commit is contained in:
Paul Hauner 2018-12-12 18:35:31 +11:00
parent 92786520e4
commit 56dc73fbd1
No known key found for this signature in database
GPG Key ID: 303E4494BB28068C
3 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@ pub enum ValidatorStatus {
#[derive(Debug, Clone, PartialEq)] #[derive(Debug, Clone, PartialEq)]
pub struct ValidatorRecord { pub struct ValidatorRecord {
pub pubkey: PublicKey, pub pubkey: PublicKey,
pub withdrawal_shard: u16, pub withdrawal_shard: u64,
pub withdrawal_address: Address, pub withdrawal_address: Address,
pub randao_commitment: Hash256, pub randao_commitment: Hash256,
pub randao_last_change: u64, pub randao_last_change: u64,

View File

@ -5,7 +5,7 @@ use bls::{create_proof_of_possession, Keypair, PublicKey, Signature};
#[derive(Debug, Clone, PartialEq)] #[derive(Debug, Clone, PartialEq)]
pub struct ValidatorRegistration { pub struct ValidatorRegistration {
pub pubkey: PublicKey, pub pubkey: PublicKey,
pub withdrawal_shard: u16, pub withdrawal_shard: u64,
pub withdrawal_address: Address, pub withdrawal_address: Address,
pub randao_commitment: Hash256, pub randao_commitment: Hash256,
pub proof_of_possession: Signature, pub proof_of_possession: Signature,

View File

@ -7,7 +7,7 @@ pub const DEPOSIT_GWEI: u64 = 32_000_000_000;
/// Inducts validators into a `CrystallizedState`. /// Inducts validators into a `CrystallizedState`.
pub struct ValidatorInductor { pub struct ValidatorInductor {
pub current_slot: u64, pub current_slot: u64,
pub shard_count: u16, pub shard_count: u64,
validators: Vec<ValidatorRecord>, validators: Vec<ValidatorRecord>,
empty_validator_start: usize, empty_validator_start: usize,
} }