Struct grin_api::BlockHeaderPrintable[][src]

pub struct BlockHeaderPrintable {
Show 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 output_mmr_size: u64, pub range_proof_root: String, pub kernel_root: String, pub kernel_mmr_size: u64, pub nonce: u64, pub edge_bits: u8, pub cuckoo_solution: Vec<u64>, pub total_difficulty: u64, pub secondary_scaling: u32, pub total_kernel_offset: String,
}

Fields

hash: Stringversion: 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

output_mmr_size: u64

Size of the output MMR

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

kernel_mmr_size: u64

Size of the kernel MMR

nonce: u64

Nonce increment used to mine this block.

edge_bits: u8

Size of the cuckoo graph

cuckoo_solution: Vec<u64>

Nonces of the cuckoo solution

total_difficulty: 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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

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

Returns the address of self. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

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

Returns the address of self. Read more

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

Should always be Self

The resulting type after obtaining ownership.

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

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

recently added

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.