Struct ethcore_miner::pool::VerifiedTransaction
source · [−]pub struct VerifiedTransaction { /* private fields */ }
Expand description
Verified transaction stored in the pool.
Implementations
sourceimpl VerifiedTransaction
impl VerifiedTransaction
sourcepub fn from_pending_block_transaction(tx: SignedTransaction) -> Self
pub fn from_pending_block_transaction(tx: SignedTransaction) -> Self
Create VerifiedTransaction
directly from SignedTransaction
.
This method should be used only:
- for tests
- In case we are converting pending block transactions that are already in the queue to match the function signature.
sourcepub fn signed(&self) -> &SignedTransaction
pub fn signed(&self) -> &SignedTransaction
Gets wrapped SignedTransaction
sourcepub fn pending(&self) -> &PendingTransaction
pub fn pending(&self) -> &PendingTransaction
Gets wrapped PendingTransaction
Trait Implementations
sourceimpl Clone for VerifiedTransaction
impl Clone for VerifiedTransaction
sourcefn clone(&self) -> VerifiedTransaction
fn clone(&self) -> VerifiedTransaction
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for VerifiedTransaction
impl Debug for VerifiedTransaction
sourceimpl Listener<VerifiedTransaction> for LocalTransactionsList
impl Listener<VerifiedTransaction> for LocalTransactionsList
sourcefn added(&mut self, tx: &Arc<Transaction>, old: Option<&Arc<Transaction>>)
fn added(&mut self, tx: &Arc<Transaction>, old: Option<&Arc<Transaction>>)
The transaction has been successfuly added to the pool.
If second argument is Some
the transaction has took place of some other transaction
which was already in pool.
NOTE: You won’t be notified about drop of old
transaction separately. Read more
sourcefn rejected<H: Debug + LowerHex>(
&mut self,
tx: &Arc<Transaction>,
reason: &Error<H>
)
fn rejected<H: Debug + LowerHex>(
&mut self,
tx: &Arc<Transaction>,
reason: &Error<H>
)
The transaction was rejected from the pool. It means that it was too cheap to replace any transaction already in the pool. Read more
sourcefn dropped(&mut self, tx: &Arc<Transaction>, new: Option<&Transaction>)
fn dropped(&mut self, tx: &Arc<Transaction>, new: Option<&Transaction>)
The transaction was pushed out from the pool because of the limit.
sourcefn invalid(&mut self, tx: &Arc<Transaction>)
fn invalid(&mut self, tx: &Arc<Transaction>)
The transaction was marked as invalid by executor.
sourcefn canceled(&mut self, tx: &Arc<Transaction>)
fn canceled(&mut self, tx: &Arc<Transaction>)
The transaction has been canceled.
sourcefn culled(&mut self, tx: &Arc<Transaction>)
fn culled(&mut self, tx: &Arc<Transaction>)
The transaction has been culled from the pool.
sourceimpl PartialEq<VerifiedTransaction> for VerifiedTransaction
impl PartialEq<VerifiedTransaction> for VerifiedTransaction
sourcefn eq(&self, other: &VerifiedTransaction) -> bool
fn eq(&self, other: &VerifiedTransaction) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &VerifiedTransaction) -> bool
fn ne(&self, other: &VerifiedTransaction) -> bool
This method tests for !=
.
sourceimpl ScoredTransaction for VerifiedTransaction
impl ScoredTransaction for VerifiedTransaction
sourcefn effective_gas_price(&self, block_base_fee: Option<U256>) -> U256
fn effective_gas_price(&self, block_base_fee: Option<U256>) -> U256
Gets transaction gas price.
sourcefn effective_priority_fee(&self, block_base_fee: Option<U256>) -> U256
fn effective_priority_fee(&self, block_base_fee: Option<U256>) -> U256
Gets the actual reward miner will get if the transaction is added into the current block.
sourceimpl VerifiedTransaction for VerifiedTransaction
impl VerifiedTransaction for VerifiedTransaction
sourcefn has_zero_gas_price(&self) -> bool
fn has_zero_gas_price(&self) -> bool
Does it have zero gas price?
impl Eq for VerifiedTransaction
impl StructuralEq for VerifiedTransaction
impl StructuralPartialEq for VerifiedTransaction
Auto Trait Implementations
impl RefUnwindSafe for VerifiedTransaction
impl Send for VerifiedTransaction
impl Sync for VerifiedTransaction
impl Unpin for VerifiedTransaction
impl UnwindSafe for VerifiedTransaction
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
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcepub fn equivalent(&self, key: &K) -> bool
pub fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more