Struct bdk::blockchain::compact_filters::Mempool
source · [−]pub struct Mempool(_);
Available 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
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more