2020-05-20 16:42:46 -07:00
|
|
|
use crate::clock::{Epoch, Slot};
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize, Clone, Debug)]
|
|
|
|
#[serde(rename_all = "camelCase")]
|
|
|
|
pub struct EpochInfo {
|
|
|
|
/// The current epoch
|
|
|
|
pub epoch: Epoch,
|
|
|
|
|
|
|
|
/// The current slot, relative to the start of the current epoch
|
|
|
|
pub slot_index: u64,
|
|
|
|
|
|
|
|
/// The number of slots in this epoch
|
|
|
|
pub slots_in_epoch: u64,
|
|
|
|
|
|
|
|
/// The absolute current slot
|
|
|
|
pub absolute_slot: Slot,
|
2020-07-21 14:43:48 -07:00
|
|
|
|
|
|
|
/// The current block height
|
|
|
|
pub block_height: u64,
|
2020-12-17 10:04:53 -08:00
|
|
|
|
|
|
|
/// Total number of transactions processed without error since genesis
|
|
|
|
pub transaction_count: Option<u64>,
|
2020-05-20 16:42:46 -07:00
|
|
|
}
|