[][src]Struct grin_core::consensus::HeaderInfo

pub struct HeaderInfo {
    pub timestamp: u64,
    pub difficulty: Difficulty,
    pub secondary_scaling: u32,
    pub is_secondary: bool,
}

Minimal header information required for the Difficulty calculation to take place

Fields

Timestamp of the header, 1 when not used (returned info)

Network difficulty or next difficulty to use

Network secondary PoW factor or factor to use

Whether the header is a secondary proof of work

Methods

impl HeaderInfo
[src]

Default constructor

Constructor from a timestamp and difficulty, setting a default secondary PoW factor

Constructor from a difficulty and secondary factor, setting a default timestamp

Trait Implementations

impl PartialEq<HeaderInfo> for HeaderInfo
[src]

impl Clone for HeaderInfo
[src]

Performs copy-assignment from source. Read more

impl Eq for HeaderInfo
[src]

impl Debug for HeaderInfo
[src]

Auto Trait Implementations

impl Send for HeaderInfo

impl Sync for HeaderInfo

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DebugAny for T where
    T: Any + Debug

impl<T> CloneAny for T where
    T: Clone + Any

impl<T> UnsafeAny for T where
    T: Any

impl<T> Erased for T

impl<T> Same for T

Should always be Self