Struct stack_epic_api::BlockHeaderPrintable
source · 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: u16Version of the block
height: u64Height of this block since the genesis block (height 0)
previous: StringHash of the block previous to this in the chain.
prev_root: StringRoot hash of the header MMR at the previous header.
timestamp: Stringrfc3339 timestamp at which the block was built.
output_root: StringMerklish root of all the commitments in the TxHashSet
range_proof_root: StringMerklish root of all range proofs in the TxHashSet
kernel_root: StringMerklish root of all transaction kernels in the TxHashSet
nonce: u64Nonce increment used to mine this block.
edge_bits: u8Size of the cuckoo graph
proof: StringProof choosed
solution: SolutionNonces of the cuckoo solution
total_difficulty: HashMap<PoWType, u64>Total accumulated difficulty since genesis block
secondary_scaling: u32Variable difficulty scaling factor for secondary proof of work
total_kernel_offset: StringTotal kernel offset since genesis block
Implementations§
source§impl BlockHeaderPrintable
impl BlockHeaderPrintable
pub fn from_header(header: &BlockHeader) -> BlockHeaderPrintable
Trait Implementations§
source§impl Clone for BlockHeaderPrintable
impl Clone for BlockHeaderPrintable
source§fn clone(&self) -> BlockHeaderPrintable
fn clone(&self) -> BlockHeaderPrintable
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for BlockHeaderPrintable
impl Debug for BlockHeaderPrintable
source§impl<'de> Deserialize<'de> for BlockHeaderPrintable
impl<'de> Deserialize<'de> for BlockHeaderPrintable
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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§
§impl<T> CloneAny for Twhere
T: Any + Clone,
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,
impl<'a, T> DefaultFeatures<'a> for Twhere
T: 'a + Send + Sync + Clone,
§fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a> + 'a, Global>
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 ()
fn self_address_mut(&mut self) -> *mut ()
Returns the address of
self. Read more§impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
§fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a> + 'a, Global>
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 ()
fn self_address_mut(&mut self) -> *mut ()
Returns the address of
self. Read more§impl<T> SafeBorrow<T> for Twhere
T: ?Sized,
impl<T> SafeBorrow<T> for Twhere
T: ?Sized,
§fn borrow_replacement(ptr: &T) -> &T
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