MCPcopy Create free account
hub / github.com/bwt-dev/bwt / get_mempool_entry

Method get_mempool_entry

src/store.rs:332–336  ·  view source on GitHub ↗

Get a mempool entry. Returns `None` for non-mempool transactions, as well as for mempool transactions that don't have the MempoolEntry data populated yet.

(&self, txid: &Txid)

Source from the content-addressed store, hash-verified

330 /// Get a mempool entry. Returns `None` for non-mempool transactions, as well as for
331 /// mempool transactions that don't have the MempoolEntry data populated yet.
332 pub fn get_mempool_entry(&self, txid: &Txid) -> Option<&MempoolEntry> {
333 self.mempool
334 .get(txid)
335 .and_then(|opt_entry| opt_entry.as_ref())
336 }
337
338 pub fn lookup_txo_fund(&self, outpoint: &OutPoint) -> Option<FundingInfo> {
339 self.transactions

Callers 2

sync_mempoolMethod · 0.45
get_mempool_entry_optMethod · 0.45

Calls 2

and_thenMethod · 0.80
getMethod · 0.80

Tested by

no test coverage detected