Use Slot and Epoch type aliases instead of raw u64 (#6693)

automerge
This commit is contained in:
Michael Vines
2019-11-02 00:38:30 -07:00
committed by Grimes
parent f9a9b7f610
commit 50a17fc00b
41 changed files with 583 additions and 473 deletions

View File

@@ -1,3 +1,4 @@
use crate::clock::Slot;
use std::fmt;
use std::net::{IpAddr, Ipv4Addr, Ipv6Addr, SocketAddr};
@@ -18,7 +19,7 @@ pub struct Meta {
pub port: u16,
pub v6: bool,
pub seed: [u8; 32],
pub slot: u64,
pub slot: Slot,
}
#[derive(Clone)]