beacon 0.2.0

Minimal Serenity beacon chain implementation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Non-configurable constants used throughout the specification.

use crate::primitives::Uint;

/// Far future epoch.
pub const FAR_FUTURE_EPOCH: Uint = Uint::max_value();
/// Base rewards per epoch.
pub const BASE_REWARDS_PER_EPOCH: Uint = 5;
/// Deposit contract tree depth.
pub const DEPOSIT_CONTRACT_TREE_DEPTH: Uint = 32;
/// Deposit contract tree depth type.
pub type DepositContractTreeDepth = typenum::U32;
/// Seconds per day.
pub const SECONDS_PER_DAY: Uint = 86400;
/// Justification bits length;
pub type JustificationBitsLength = typenum::U4;