massa_pos_exports/
config.rs

1// Copyright (c) 2022 MASSA LABS <info@massa.net>
2
3use std::path::PathBuf;
4
5/// proof-of-stake final state configuration
6#[derive(Debug, Clone)]
7pub struct PoSConfig {
8    /// periods per cycle
9    pub periods_per_cycle: u64,
10    /// thread count
11    pub thread_count: u8,
12    /// number of saved cycle
13    pub cycle_history_length: usize,
14    /// maximum rolls length
15    pub max_rolls_length: u64,
16    /// maximum production stats length
17    pub max_production_stats_length: u64,
18    /// maximum deferred credits length
19    pub max_credit_length: u64,
20    /// initial deferred credits file path
21    pub initial_deferred_credits_path: Option<PathBuf>,
22}