pub struct UnilateralExitTransaction {
pub kind: UnilateralExitTxKind,
pub node_id: Option<String>,
pub txid: String,
pub tx_hex: String,
pub cpfp_tx_hex: Option<String>,
pub csv_timelock_blocks: Option<u32>,
pub depends_on: Vec<String>,
pub status: ExitTransactionStatus,
}Expand description
One transaction in the unilateral exit path, with everything needed to order and broadcast it.
Fields§
§kind: UnilateralExitTxKind§node_id: Option<String>The tree node this transaction belongs to. Unset for the fan-out and the sweep.
txid: String§tx_hex: String§cpfp_tx_hex: Option<String>The signed CPFP child to broadcast alongside tx_hex as a package.
Unset for the fan-out and the sweep (no anchor to bump) and for a
Confirmed step (its CPFP is already on-chain).
csv_timelock_blocks: Option<u32>Relative CSV timelock, in blocks, that must mature on the spent input before this transaction can confirm. Unset when there is no timelock.
depends_on: Vec<String>Txids of other entries in this list that must be confirmed before this one can be broadcast.
status: ExitTransactionStatusWhether this transaction is on-chain, can go out now, or is waiting on
something. Resolved against the chain tip, so it accounts for
csv_timelock_blocks as well as depends_on.
Trait Implementations§
Source§impl Clone for UnilateralExitTransaction
impl Clone for UnilateralExitTransaction
Source§fn clone(&self) -> UnilateralExitTransaction
fn clone(&self) -> UnilateralExitTransaction
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for UnilateralExitTransaction
impl Debug for UnilateralExitTransaction
Source§impl<'de> Deserialize<'de> for UnilateralExitTransaction
impl<'de> Deserialize<'de> for UnilateralExitTransaction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for UnilateralExitTransaction
impl RefUnwindSafe for UnilateralExitTransaction
impl Send for UnilateralExitTransaction
impl Sync for UnilateralExitTransaction
impl Unpin for UnilateralExitTransaction
impl UnsafeUnpin for UnilateralExitTransaction
impl UnwindSafe for UnilateralExitTransaction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request