Struct bdk::blockchain::compact_filters::Mempool
source · [−]pub struct Mempool(_);
This is supported on crate feature
compact_filters
only.Expand description
Implementations
sourceimpl Mempool
impl Mempool
sourcepub fn add_tx(&self, tx: Transaction)
pub fn add_tx(&self, tx: Transaction)
Add a transaction to the mempool
Note that this doesn’t propagate the transaction to other
peers. To do that, broadcast
should be used.
sourcepub fn get_tx(&self, inventory: &Inventory) -> Option<Transaction>
pub fn get_tx(&self, inventory: &Inventory) -> Option<Transaction>
Look-up a transaction in the mempool given an Inventory
request
sourcepub fn has_tx(&self, txid: &Txid) -> bool
pub fn has_tx(&self, txid: &Txid) -> bool
Return whether or not the mempool contains a transaction with a given txid
sourcepub fn iter_txs(&self) -> Vec<Transaction>
pub fn iter_txs(&self) -> Vec<Transaction>
Return the list of transactions contained in the mempool
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Mempool
impl Send for Mempool
impl Sync for Mempool
impl Unpin for Mempool
impl UnwindSafe for Mempool
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