[][src]Enum grin_core::core::transaction::Weighting

pub enum Weighting {
    AsTransaction,
    AsLimitedTransaction(usize),
    AsBlock,
    NoLimit,
}

Enum of possible tx weight verification options -

  • As "transaction" checks tx (as block) weight does not exceed max_block_weight.
  • As "block" same as above but allow for additional coinbase reward (1 output, 1 kernel).
  • With "no limit" to skip the weight check.

Variants

AsTransaction

Tx represents a tx (max block weight, accounting for additional coinbase reward).

AsLimitedTransaction(usize)

Tx representing a tx with artificially limited max_weight. This is used when selecting mineable txs from the pool.

AsBlock

Tx represents a block (max block weight).

NoLimit

No max weight limit (skip the weight check).

Trait Implementations

impl Copy for Weighting[src]

impl Clone for Weighting[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> CloneAny for T where
    T: Clone + Any

impl<T> UnsafeAny for T where
    T: Any

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Erased for T