Struct ethcore_miner::pool::local_transactions::LocalTransactionsList [−][src]
pub struct LocalTransactionsList { /* fields omitted */ }
Keeps track of local transactions that are in the queue or were mined/dropped recently.
Methods
impl LocalTransactionsList
[src]
impl LocalTransactionsList
pub fn new(max_old: usize) -> Self
[src]
pub fn new(max_old: usize) -> Self
Create a new list of local transactions.
pub fn contains(&self, hash: &H256) -> bool
[src]
pub fn contains(&self, hash: &H256) -> bool
Returns true if the transaction is already in local transactions.
pub fn all_transactions(&self) -> &LinkedHashMap<H256, Status>
[src]
pub fn all_transactions(&self) -> &LinkedHashMap<H256, Status>
Return a map of all currently stored transactions.
pub fn has_pending(&self) -> bool
[src]
pub fn has_pending(&self) -> bool
Returns true if there are pending local transactions.
Trait Implementations
impl Debug for LocalTransactionsList
[src]
impl Debug for LocalTransactionsList
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for LocalTransactionsList
[src]
impl Default for LocalTransactionsList
impl Listener<Transaction> for LocalTransactionsList
[src]
impl Listener<Transaction> for LocalTransactionsList
fn added(&mut self, tx: &Arc<Transaction>, old: Option<&Arc<Transaction>>)
[src]
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
fn rejected(&mut self, tx: &Arc<Transaction>, reason: &ErrorKind)
[src]
fn rejected(&mut self, tx: &Arc<Transaction>, reason: &ErrorKind)
The transaction was rejected from the pool. It means that it was too cheap to replace any transaction already in the pool. Read more
fn dropped(&mut self, tx: &Arc<Transaction>, new: Option<&Transaction>)
[src]
fn dropped(&mut self, tx: &Arc<Transaction>, new: Option<&Transaction>)
The transaction was pushed out from the pool because of the limit.
fn invalid(&mut self, tx: &Arc<Transaction>)
[src]
fn invalid(&mut self, tx: &Arc<Transaction>)
The transaction was marked as invalid by executor.
fn canceled(&mut self, tx: &Arc<Transaction>)
[src]
fn canceled(&mut self, tx: &Arc<Transaction>)
The transaction has been canceled.
fn mined(&mut self, tx: &Arc<Transaction>)
[src]
fn mined(&mut self, tx: &Arc<Transaction>)
The transaction has been mined.
Auto Trait Implementations
impl Send for LocalTransactionsList
impl Send for LocalTransactionsList
impl Sync for LocalTransactionsList
impl Sync for LocalTransactionsList