pub struct MinerData {
pub major_version: u8,
pub height: u64,
pub prev_id: Hex<32>,
pub seed_hash: Hex<32>,
pub difficulty: u64,
pub median_weight: u64,
pub already_generated_coins: u64,
pub tx_backlog: Vec<TxBacklog>,
}
Expand description
ZMQ json-full-miner_data
subscriber messages contain a single
MinerData
object that provides the necessary data to create a
custom block template. There is no min version of this object.
Fields§
§major_version: u8
major version of the monero protocol for the next mined block
height: u64
height on which to mine
prev_id: Hex<32>
block id of the most recent block on which to mine the next block
seed_hash: Hex<32>
hash of block to use as seed for Random-X proof-of-work
difficulty: u64
least-significant 64 bits of the 128-bit network difficulty
median_weight: u64
median adjusted block size of the latest 100000 blocks
already_generated_coins: u64
fixed at u64::MAX
in perpetuity as Monero has already reached tail emission
tx_backlog: Vec<TxBacklog>
mineable mempool transactions
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MinerData
impl<'de> Deserialize<'de> for MinerData
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 MinerData
impl RefUnwindSafe for MinerData
impl Send for MinerData
impl Sync for MinerData
impl Unpin for MinerData
impl UnwindSafe for MinerData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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: 128 bytes