pub struct ChainMain {
pub major_version: u8,
pub minor_version: u8,
pub timestamp: u64,
pub prev_id: Hex<32>,
pub nonce: u32,
pub miner_tx: MinerTx,
pub tx_hashes: Vec<Hex<32>>,
}
Expand description
ZMQ json-full-chain_main
subscriber messages contain an array of
ChainMain
JSON objects. Each ChainMain
object represents a new block.
Push messages only contain more than one block if a re-org occurred.
Fields§
§major_version: u8
major version of the monero protocol at this block’s height
minor_version: u8
minor version of the monero protocol at this block’s height
timestamp: u64
epoch time, decided by the miner, at which the block was mined
prev_id: Hex<32>
block id of the previous block
nonce: u32
cryptographic random one-time number used in mining a Monero block
miner_tx: MinerTx
coinbase transaction information
tx_hashes: Vec<Hex<32>>
non-coinbase transaction IDs in the block (can be empty)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ChainMain
impl<'de> Deserialize<'de> for ChainMain
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>,
Auto Trait Implementations§
impl Freeze for ChainMain
impl RefUnwindSafe for ChainMain
impl Send for ChainMain
impl Sync for ChainMain
impl Unpin for ChainMain
impl UnwindSafe for ChainMain
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 144 bytes