#[repr(C)]pub struct DeclareMiningJob<'decoder> {
pub request_id: u32,
pub mining_job_token: B0255<'decoder>,
pub version: u32,
pub coinbase_tx_prefix: B064K<'decoder>,
pub coinbase_tx_suffix: B064K<'decoder>,
pub tx_ids_list: Seq064K<'decoder, U256<'decoder>>,
pub excess_data: B064K<'decoder>,
}Expand description
Message used by JDC to proposes a selected set of transactions to JDS they wish to mine on.
Used only under Full Template mode.
Fields§
§request_id: u32A unique identifier for this request.
Used for pairing request/response.
mining_job_token: B0255<'decoder>Token received previously through crate::AllocateMiningJobTokenSuccess message.
version: u32Header version field.
coinbase_tx_prefix: B064K<'decoder>Serialized bytes representing the initial part of the coinbase transaction (not including extranonce)
coinbase_tx_suffix: B064K<'decoder>Serialized bytes representing the final part of the coinbase transaction (after extranonce)
tx_ids_list: Seq064K<'decoder, U256<'decoder>>List of the transaction ids contained in the template. JDS checks the list against its
mempool and requests missing txs via crate::ProvideMissingTransactions.
This list Does not include the coinbase transaction (as there is no corresponding full data for it yet).
excess_data: B064K<'decoder>Extra data which the JDS may require to validate the work.
Implementations§
Source§impl<'decoder> DeclareMiningJob<'decoder>
impl<'decoder> DeclareMiningJob<'decoder>
pub fn into_static(self) -> DeclareMiningJob<'static>
Source§impl<'decoder> DeclareMiningJob<'decoder>
impl<'decoder> DeclareMiningJob<'decoder>
pub fn as_static(&self) -> DeclareMiningJob<'static>
Trait Implementations§
Source§impl<'decoder> Clone for DeclareMiningJob<'decoder>
impl<'decoder> Clone for DeclareMiningJob<'decoder>
Source§fn clone(&self) -> DeclareMiningJob<'decoder>
fn clone(&self) -> DeclareMiningJob<'decoder>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more