Enum ethcore_miner::pool::verifier::Transaction
source · [−]pub enum Transaction {
Unverified(UnverifiedTransaction),
Retracted(UnverifiedTransaction),
Local(PendingTransaction),
}
Expand description
Transaction to verify.
Variants
Unverified(UnverifiedTransaction)
Fresh, never verified transaction.
We need to do full verification of such transactions
Retracted(UnverifiedTransaction)
Transaction from retracted block.
We could skip some parts of verification of such transactions
Local(PendingTransaction)
Locally signed or retracted transaction.
We can skip consistency verifications and just verify readiness.
Implementations
sourceimpl Transaction
impl Transaction
sourcepub fn gas_price(&self) -> &U256
pub fn gas_price(&self) -> &U256
Return transaction gas price for non 1559 transactions or maxFeePerGas for 1559 transactions.
sourcepub fn effective_gas_price(&self, block_base_fee: Option<U256>) -> U256
pub fn effective_gas_price(&self, block_base_fee: Option<U256>) -> U256
Return actual gas price of the transaction depending on the current block base fee
sourcepub fn effective_priority_fee(&self, block_base_fee: Option<U256>) -> U256
pub fn effective_priority_fee(&self, block_base_fee: Option<U256>) -> U256
Return effective fee - part of the transaction fee that goes to the miner
sourcepub fn max_priority_fee(&self) -> U256
pub fn max_priority_fee(&self) -> U256
Return maximum transaction fee that may go to the miner: transaction gas price for non 1559 transactions or maxPriorityFeePerGas for 1559 transactions.
sourcepub fn has_zero_gas_price(&self) -> bool
pub fn has_zero_gas_price(&self) -> bool
Check if transaction has zero gas price
Trait Implementations
sourceimpl<C: Client> Verifier<Transaction> for Verifier<C, NonceAndGasPrice, VerifiedTransaction>
impl<C: Client> Verifier<Transaction> for Verifier<C, NonceAndGasPrice, VerifiedTransaction>
type VerifiedTransaction = VerifiedTransaction
type VerifiedTransaction = VerifiedTransaction
Verified transaction.
sourcefn verify_transaction(
&self,
tx: Transaction
) -> Result<Self::VerifiedTransaction, Self::Error>
fn verify_transaction(
&self,
tx: Transaction
) -> Result<Self::VerifiedTransaction, Self::Error>
Verifies a UnverifiedTransaction
and produces VerifiedTransaction
instance.
Auto Trait Implementations
impl RefUnwindSafe for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin for Transaction
impl UnwindSafe for Transaction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more