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 LocalTransactionsListpub fn new(max_old: usize) -> Self[src]
pub fn new(max_old: usize) -> SelfCreate a new list of local transactions.
pub fn contains(&self, hash: &H256) -> bool[src]
pub fn contains(&self, hash: &H256) -> boolReturns 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) -> boolReturns true if there are pending local transactions.
Trait Implementations
impl Debug for LocalTransactionsList[src]
impl Debug for LocalTransactionsListfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for LocalTransactionsList[src]
impl Default for LocalTransactionsListimpl Listener<Transaction> for LocalTransactionsList[src]
impl Listener<Transaction> for LocalTransactionsListfn 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 LocalTransactionsListimpl Sync for LocalTransactionsList
impl Sync for LocalTransactionsList