pub struct MinerTx {
pub version: u8,
pub unlock_time: u64,
pub inputs: [MinerInput; 1],
pub outputs: Vec<Output>,
pub extra: Vec<u8>,
/* private fields */
}
Expand description
Part of the new block information in ChainMain
Fields§
§version: u8
transaction version number
unlock_time: u64
block height when the coinbase transaction becomes spendable (currently 60 blocks above the coinbase transaction height)
inputs: [MinerInput; 1]
contains the block height in inputs[0].gen.height
and nothing else as
coinbase transactions have no inputs
outputs: Vec<Output>
transaction outputs
extra: Vec<u8>
extra data for the transaction with variable size; not limited to 1060
bytes like the extra field of non-coinbase transactions
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MinerTx
impl<'de> Deserialize<'de> for MinerTx
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
Auto Trait Implementations§
impl Freeze for MinerTx
impl RefUnwindSafe for MinerTx
impl Send for MinerTx
impl Sync for MinerTx
impl Unpin for MinerTx
impl UnwindSafe for MinerTx
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
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: 72 bytes