casper-node 2.0.3

The Casper blockchain node
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use datasize::DataSize;
use serde::{Deserialize, Serialize};

/// Configuration options for block validation.
#[derive(Copy, Clone, DataSize, Debug, Deserialize, Serialize)]
pub struct Config {
    pub max_completed_entries: u32,
}

impl Default for Config {
    fn default() -> Self {
        Config {
            max_completed_entries: 3,
        }
    }
}