Module lightning::chain [−][src]
Expand description
Structs and traits which allow other parts of rust-lightning to interact with the blockchain.
Modules
Traits and utility impls which allow other parts of rust-lightning to interact with the blockchain.
Logic to connect off-chain channel management with on-chain transaction monitoring.
The logic to monitor for on-chain transactions and create the relevant claim responses lives here.
keysinterface provides keys into rust-lightning and defines some useful enums which describe spendable on-chain outputs which the user owns and is responsible for using just as any other on-chain output which is theirs.
Types describing on-chain transactions.
Structs
The best known block as identified by its hash and height.
A transaction output watched by a ChannelMonitor
for spends on-chain.
Enums
An error when accessing the chain via Access
.
An error enum representing a failure to persist a channel monitor update.
Traits
The Access
trait defines behavior for accessing chain data and state, such as blocks and
UTXOs.
The Confirm
trait is used to notify when transactions have been confirmed on chain or
unconfirmed during a chain reorganization.
The Filter
trait defines behavior for indicating chain activity of interest pertaining to
channels.
The Listen
trait is used to notify when blocks have been connected or disconnected from the
chain.
The Watch
trait defines behavior for watching on-chain activity pertaining to channels as
blocks are connected and disconnected.