brk_types 0.2.2

Structs used throughout BRK
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};

use super::{Height, Timestamp};

/// A single difficulty data point.
#[derive(Debug, Serialize, Deserialize, JsonSchema)]
pub struct DifficultyEntry {
    /// Unix timestamp of the difficulty adjustment.
    pub timestamp: Timestamp,
    /// Difficulty value.
    pub difficulty: f64,
    /// Block height of the adjustment.
    pub height: Height,
}