pub async fn fetch_mempool_transactions<Mempool>(
mempool: Mempool,
chain_tip_hash: Hash,
) -> RpcResult<Option<(Vec<VerifiedUnminedTx>, TransactionDependencies)>>
Expand description
Returns the transactions that are currently in mempool
, or None if the
last_seen_tip_hash
from the mempool response doesn’t match the tip hash from the state.
You should call check_synced_to_tip()
before calling this function.
If the mempool is inactive because Zebra is not synced to the tip, returns no transactions.