oasis_core_runtime/consensus/
beacon.rs

1/// The number of intervals (epochs) since a fixed instant in time/block height (epoch date/height).
2pub type EpochTime = u64;
3
4/// An invalid epoch time.
5pub const EPOCH_INVALID: EpochTime = 0xffffffffffffffff;
6
7/// The epoch state.
8#[derive(Clone, Debug, Default, PartialEq, Eq, Hash, cbor::Encode, cbor::Decode)]
9pub struct EpochTimeState {
10    pub epoch: EpochTime,
11    pub height: i64,
12}