pub struct TxNode<'a, T, A> {
pub txid: Txid,
pub tx: T,
pub anchors: &'a BTreeSet<A>,
pub last_seen_unconfirmed: u64,
}
Expand description
A transaction node in the TxGraph
.
Fields§
§txid: Txid
Txid of the transaction.
tx: T
A partial or full representation of the transaction.
anchors: &'a BTreeSet<A>
The blocks that the transaction is “anchored” in.
last_seen_unconfirmed: u64
The last-seen unix timestamp of the transaction as unconfirmed.
Trait Implementations§
source§impl<'a, T: Ord, A: Ord> Ord for TxNode<'a, T, A>
impl<'a, T: Ord, A: Ord> Ord for TxNode<'a, T, A>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<'a, T: PartialEq, A: PartialEq> PartialEq<TxNode<'a, T, A>> for TxNode<'a, T, A>
impl<'a, T: PartialEq, A: PartialEq> PartialEq<TxNode<'a, T, A>> for TxNode<'a, T, A>
source§impl<'a, T: PartialOrd, A: PartialOrd> PartialOrd<TxNode<'a, T, A>> for TxNode<'a, T, A>
impl<'a, T: PartialOrd, A: PartialOrd> PartialOrd<TxNode<'a, T, A>> for TxNode<'a, T, A>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more