pub struct EventHeader {
pub version: u32,
pub previous_hash: Hash,
pub merkle_root: Hash,
pub time: u32,
pub bits: u32,
pub nonce: u32,
pub height: Height,
pub hash: Hash,
pub chain_work: String,
}Expand description
The eight public header fields and cumulative work in the #32 envelope. [SRC] rust-chaintracks@a62f9ed docs/CHAIN-EVENTS.md:13-23; src/events.rs:13-25 fixes the Rust integer widths. These are wire data, never a checked inclusion capability.
Fields§
§version: u32The block version.
previous_hash: HashThe display order hash of the parent block.
merkle_root: HashThe display order merkle root the header commits to.
time: u32The block timestamp, in seconds.
bits: u32The compact difficulty target.
nonce: u32The proof of work nonce.
height: HeightThe block’s height on the emitter’s chain.
hash: HashThe display order hash of this header.
chain_work: StringThe cumulative chain work at this header, as the emitter’s string.
Trait Implementations§
Source§impl Clone for EventHeader
impl Clone for EventHeader
Source§impl Debug for EventHeader
impl Debug for EventHeader
Source§impl<'de> Deserialize<'de> for EventHeader
impl<'de> Deserialize<'de> for EventHeader
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
impl Eq for EventHeader
Source§impl PartialEq for EventHeader
impl PartialEq for EventHeader
Source§impl Serialize for EventHeader
impl Serialize for EventHeader
impl StructuralPartialEq for EventHeader
Auto Trait Implementations§
impl Freeze for EventHeader
impl RefUnwindSafe for EventHeader
impl Send for EventHeader
impl Sync for EventHeader
impl Unpin for EventHeader
impl UnsafeUnpin for EventHeader
impl UnwindSafe for EventHeader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more