[][src]Struct miner::MemoryPool

pub struct MemoryPool { /* fields omitted */ }

Transactions memory pool

Methods

impl MemoryPool
[src]

Creates new memory pool

Insert verified transaction to the MemoryPool

Iterator over memory pool transactions according to specified strategy

Removes single transaction by its hash. All descedants remain in the pool.

Checks if transaction spends some outputs, already spent by inpool transactions.

Removes transaction (and all its descendants) which has spent given output

Reads single transaction by its hash.

Reads hash of the 'top' transaction from the MemoryPool using selected strategy. Ancestors are always returned before descendant transactions.

Reads hashes of up to n transactions from the MemoryPool, using selected strategy. Ancestors are always returned before descendant transactions. Use this function with care, only if really needed (heavy memory usage)

Removes the 'top' transaction from the MemoryPool using selected strategy. Ancestors are always removed before descendant transactions.

Removes up to n transactions from the MemoryPool, using selected strategy. Ancestors are always removed before descendant transactions.

Set miner virtual fee for transaction

Get transaction by hash

Checks if transaction is in the mempool

Returns information on MemoryPool (as in GetMemPoolInfo RPC) https://bitcoin.org/en/developer-reference#getmempoolinfo

Returns TXIDs of all transactions in MemoryPool (as in GetRawMemPool RPC) https://bitcoin.org/en/developer-reference#getrawmempool

Returns true if output was spent

Trait Implementations

impl Debug for MemoryPool
[src]

Formats the value using the given formatter. Read more

impl Default for MemoryPool
[src]

Returns the "default value" for a type. Read more

impl TransactionProvider for MemoryPool
[src]

Resolves transaction body bytes by transaction hash.

Resolves serialized transaction info by transaction hash.

Returns true if store contains given transaction.

impl TransactionOutputProvider for MemoryPool
[src]

Returns transaction output.

Returns true if we know that output is double spent.

impl HeapSizeOf for MemoryPool
[src]

Measure the size of any heap-allocated structures that hang off this value, but not the space taken up by the value itself (i.e. what size_of:: measures, more or less); that space is handled by the implementation of HeapSizeOf for Box below. Read more

Auto Trait Implementations

impl Send for MemoryPool

impl Sync for MemoryPool

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<T> Erased for T