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:
parent
92786520e4
commit
56dc73fbd1
@ -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,
|
||||||
|
@ -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,
|
||||||
|
@ -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,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user