pub enum TxStatus {
Unconfirmed,
Acknowledged {
peer: SocketAddr,
},
Confirmed {
height: u64,
block: BlockHash,
},
Reverted,
Stale {
replaced_by: Txid,
block: BlockHash,
},
}Expand description
Transaction status of a given transaction.
Variants
Unconfirmed
This is the initial state of a transaction after it has been announced by the client.
Acknowledged
Fields
peer: SocketAddrPeer acknowledging the transaction.
Transaction was acknowledged by a peer.
This is the case when a peer requests the transaction data from us after an inventory announcement. It does not mean the transaction is considered valid by the peer.
Confirmed
Fields
height: u64Height at which it was included.
Transaction was included in a block. This event is fired after a block from the main chain is scanned.
Reverted
A transaction that was previously confirmed, and is now reverted due to a re-org. Note that this event can only fire if the originally confirmed tx is still in memory.
Stale
Fields
Transaction was replaced by another transaction, and will probably never
be included in a block. This can happen if an RBF transaction is replaced by one with
a higher fee, or if a transaction is reverted and a conflicting transaction replaces
it. In this case it would be preceded by a TxStatus::Reverted status.
Trait Implementations
sourceimpl Ord for TxStatus
impl Ord for TxStatus
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
sourceimpl PartialOrd<TxStatus> for TxStatus
impl PartialOrd<TxStatus> for TxStatus
sourcefn partial_cmp(&self, other: &TxStatus) -> Option<Ordering>
fn partial_cmp(&self, other: &TxStatus) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read more