Struct lightning::chain::WatchedOutput[][src]

pub struct WatchedOutput {
    pub block_hash: Option<BlockHash>,
    pub outpoint: OutPoint,
    pub script_pubkey: Script,
}

A transaction output watched by a ChannelMonitor for spends on-chain.

Used to convey to a Filter such an output with a given spending condition. Any transaction spending the output must be given to ChannelMonitor::block_connected either directly or via the return value of Filter::register_output.

If block_hash is Some, this indicates the output was created in the corresponding block and may have been spent there. See Filter::register_output for details.

Fields

block_hash: Option<BlockHash>

First block where the transaction output may have been spent.

outpoint: OutPoint

Outpoint identifying the transaction output.

script_pubkey: Script

Spending condition of the transaction output.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.