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: 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
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
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for BlockHeaderPrintable
impl Send for BlockHeaderPrintable
impl Sync for BlockHeaderPrintable
impl Unpin for BlockHeaderPrintable
impl UnwindSafe for BlockHeaderPrintable
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send, Global> where
T: Send,
pub fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync, Global> where
T: Sync,
pub fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a> + 'a, Global>
pub 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. Read more
pub fn self_address_mut(&mut self) -> *mut ()
pub fn self_address_mut(&mut self) -> *mut ()
Returns the address of self
. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
impl<'a, T> NonSyncFeatures<'a> for T where
T: 'a + Clone,
impl<'a, T> NonSyncFeatures<'a> for T where
T: 'a + Clone,
pub fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a> + 'a, Global>
pub 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. Read more
pub fn self_address_mut(&mut self) -> *mut ()
pub fn self_address_mut(&mut self) -> *mut ()
Returns the address of self
. Read more
impl<T> SafeBorrow<T> for T where
T: ?Sized,
impl<T> SafeBorrow<T> for T where
T: ?Sized,
pub fn borrow_replacement(ptr: &T) -> &T
pub 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
type Output = T
type Output = T
Should always be Self