Struct template_distribution_sv2::CoinbaseOutputDataSize [−][src]
#[repr(C)]pub struct CoinbaseOutputDataSize { pub coinbase_output_max_additional_size: u32, }
Expand description
CoinbaseOutputDataSize (Client -> Server)
Ultimately, the pool is responsible for adding coinbase transaction outputs for payouts and other uses, and thus the Template Provider will need to consider this additional block size when selecting transactions for inclusion in a block (to not create an invalid, oversized block). Thus, this message is used to indicate that some additional space in the block/coinbase transaction be reserved for the pool’s use (while always assuming the pool will use the entirety of available coinbase space). The Job Negotiator MUST discover the maximum serialized size of the additional outputs which will be added by the pool(s) it intends to use this work. It then MUST communicate the maximum such size to the Template Provider via this message. The Template Provider MUST NOT provide NewWork messages which would represent consensus-invalid blocks once this additional size — along with a maximally-sized (100 byte) coinbase field — is added. Further, the Template Provider MUST consider the maximum additional bytes required in the output count variable-length integer in the coinbase transaction when complying with the size limits.
Fields
coinbase_output_max_additional_size: u32
The maximum additional serialized bytes which the pool will add in coinbase transaction outputs.
Trait Implementations
fn from_bytes(data: &'a mut [u8]) -> Result<Self, Error>
fn from_reader(reader: &mut impl Read) -> Result<Self, Error>
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for CoinbaseOutputDataSize
impl Send for CoinbaseOutputDataSize
impl Sync for CoinbaseOutputDataSize
impl Unpin for CoinbaseOutputDataSize
impl UnwindSafe for CoinbaseOutputDataSize
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<'a, T> Encodable for T where
T: Into<EncodableField<'a>>,
impl<'a, T> Encodable for T where
T: Into<EncodableField<'a>>,