stake split (#6402)

* stake split

* stake split
This commit is contained in:
Rob Walker
2019-10-31 11:07:27 -07:00
committed by GitHub
parent 3a616de47b
commit bc88180058
6 changed files with 770 additions and 125 deletions

View File

@@ -72,6 +72,15 @@ pub type Segment = u64;
/// some number of Slots.
pub type Epoch = u64;
#[repr(C)]
#[derive(Serialize, Deserialize, Debug, Default, PartialEq)]
pub struct Clock {
pub slot: Slot,
pub segment: Segment,
pub epoch: Epoch,
pub stakers_epoch: Epoch,
}
#[cfg(test)]
mod tests {
use super::*;