Enum grin_core::core::transaction::Weighting
source · pub enum Weighting {
AsTransaction,
AsLimitedTransaction(u64),
AsBlock,
NoLimit,
}
Expand description
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(u64)
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§
Auto Trait Implementations§
impl Freeze for Weighting
impl RefUnwindSafe for Weighting
impl Send for Weighting
impl Sync for Weighting
impl Unpin for Weighting
impl UnwindSafe for Weighting
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