casper-node 2.0.3

The Casper blockchain node
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use thiserror::Error;

use super::config::MAX_SATURATION_LIMIT_PERCENT;

/// Error returned by a `GossipTable`.
#[derive(Debug, Error)]
pub(crate) enum Error {
    /// Invalid configuration value for `saturation_limit_percent`.
    #[error(
        "invalid saturation_limit_percent - should be between 0 and {} inclusive",
        MAX_SATURATION_LIMIT_PERCENT
    )]
    InvalidSaturationLimit,
}