pub struct BlockHeaderPrintable {
Show 16 fields pub hash: String, pub version: u16, pub height: u64, pub previous: String, pub prev_root: String, pub timestamp: String, pub output_root: String, pub range_proof_root: String, pub kernel_root: String, pub nonce: u64, pub edge_bits: u8, pub proof: String, pub solution: Solution, pub total_difficulty: HashMap<PoWType, u64>, pub secondary_scaling: u32, pub total_kernel_offset: String,
}

Fields§

§hash: String§version: u16

Version of the block

§height: u64

Height of this block since the genesis block (height 0)

§previous: String

Hash of the block previous to this in the chain.

§prev_root: String

Root hash of the header MMR at the previous header.

§timestamp: String

rfc3339 timestamp at which the block was built.

§output_root: String

Merklish root of all the commitments in the TxHashSet

§range_proof_root: String

Merklish root of all range proofs in the TxHashSet

§kernel_root: String

Merklish root of all transaction kernels in the TxHashSet

§nonce: u64

Nonce increment used to mine this block.

§edge_bits: u8

Size of the cuckoo graph

§proof: String

Proof choosed

§solution: Solution

Nonces of the cuckoo solution

§total_difficulty: HashMap<PoWType, u64>

Total accumulated difficulty since genesis block

§secondary_scaling: u32

Variable difficulty scaling factor for secondary proof of work

§total_kernel_offset: String

Total kernel offset since genesis block

Implementations§

Trait Implementations§

source§

impl Clone for BlockHeaderPrintable

source§

fn clone(&self) -> BlockHeaderPrintable

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for BlockHeaderPrintable

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for BlockHeaderPrintable

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for BlockHeaderPrintable

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
    __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere
    T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere
    T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere
    T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneAny for Twhere
    T: Any + Clone,

§

fn clone_any(&self) -> Box<dyn CloneAny + 'static, Global>

§

fn clone_any_send(&self) -> Box<dyn CloneAny + Send + 'static, Global>where
    T: Send,

§

fn clone_any_sync(&self) -> Box<dyn CloneAny + Sync + 'static, Global>where
    T: Sync,

§

fn clone_any_send_sync(
    &self
) -> Box<dyn CloneAny + Send + Sync + 'static, Global>where
    T: Send + Sync,

§

impl<'a, T> DefaultFeatures<'a> for Twhere
    T: 'a + Send + Sync + Clone,

§

fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a> + 'a, Global>

Clone this value, and then immediately put it into a Box behind a trait object of this trait.
§

fn self_address_mut(&mut self) -> *mut ()

Returns the address of self. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere
    U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<'a, T> NonSyncFeatures<'a> for Twhere
    T: 'a + Clone,

§

fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a> + 'a, Global>

Clone this value, and then immediately put it into a Box behind a trait object of this trait.
§

fn self_address_mut(&mut self) -> *mut ()

Returns the address of self. Read more
§

impl<T> SafeBorrow<T> for Twhere
    T: ?Sized,

§

fn borrow_replacement(ptr: &T) -> &T

Given ptr, which was obtained from a prior call to Self::borrow(), return a value with the same nominal lifetime which is guaranteed to survive mutations to Self. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere
    T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere
    U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere
    U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> DebugAny for Twhere
    T: Any + Debug,

source§

impl<T> DeserializeOwned for Twhere
    T: for<'de> Deserialize<'de>,

§

impl<T> Erased for T

§

impl<T> UnsafeAny for Twhere
    T: Any,