pub struct TxValidationResult {
pub valid: bool,
pub priority: u64,
pub gas_wanted: u64,
}Expand description
Result of transaction validation, including priority and gas for mempool ordering.
Fields§
§valid: boolWhether the transaction is valid.
priority: u64Priority for mempool ordering (higher = included first). Applications typically derive this from gas price / fee.
gas_wanted: u64Gas units this transaction will consume. Used by collect_payload
to enforce max_gas_per_block limits. Default: 0 (no gas accounting).
Implementations§
Trait Implementations§
Source§impl Clone for TxValidationResult
impl Clone for TxValidationResult
Source§fn clone(&self) -> TxValidationResult
fn clone(&self) -> TxValidationResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TxValidationResult
impl RefUnwindSafe for TxValidationResult
impl Send for TxValidationResult
impl Sync for TxValidationResult
impl Unpin for TxValidationResult
impl UnsafeUnpin for TxValidationResult
impl UnwindSafe for TxValidationResult
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