pub struct TxUpdate<A = ()> {
pub txs: Vec<Arc<Transaction>>,
pub txouts: BTreeMap<OutPoint, TxOut>,
pub anchors: BTreeSet<(A, Txid)>,
pub seen_ats: HashMap<Txid, u64>,
}Expand description
Data object used to communicate updates about relevant transactions from some chain data source
to the core model (usually a bdk_chain::TxGraph).
Fields§
§txs: Vec<Arc<Transaction>>Full transactions. These are transactions that were determined to be relevant to the wallet given the request.
txouts: BTreeMap<OutPoint, TxOut>Floating txouts. These are TxOuts that exist but the whole transaction wasn’t included in
txs since only knowing about the output is important. These are often used to help determine
the fee of a wallet transaction.
anchors: BTreeSet<(A, Txid)>Transaction anchors. Anchors tells us a position in the chain where a transaction was confirmed.
seen_ats: HashMap<Txid, u64>Seen at times for transactions. This records when a transaction was most recently seen in the user’s mempool for the sake of tie-breaking other conflicting transactions.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<A> Freeze for TxUpdate<A>
impl<A> RefUnwindSafe for TxUpdate<A>where
A: RefUnwindSafe,
impl<A> Send for TxUpdate<A>where
A: Send,
impl<A> Sync for TxUpdate<A>where
A: Sync,
impl<A> Unpin for TxUpdate<A>
impl<A> UnwindSafe for TxUpdate<A>where
A: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more