[−][src]Module lightning::chain::chaininterface
Traits and utility impls which allow other parts of rust-lightning to interact with the blockchain.
Includes traits for monitoring and receiving notifications of new blocks and block disconnections, transaction broadcasting, and feerate information requests.
Structs
BlockNotifier | Utility for notifying listeners about new blocks, and handling block rescans if new watch data is registered. |
ChainWatchInterfaceUtil | Utility to capture some common parts of ChainWatchInterface implementors. |
ChainWatchedUtil | Utility for tracking registered txn/outpoints and checking for matches |
Enums
ChainError | Used to give chain error details upstream |
ConfirmationTarget | An enum that represents the speed at which we want a transaction to confirm used for feerate estimation. |
Constants
MIN_RELAY_FEE_SAT_PER_1000_WEIGHT | Minimum relay fee as required by bitcoin network mempool policy. |
Traits
BroadcasterInterface | An interface to send a transaction to the Bitcoin network. |
ChainListener | A trait indicating a desire to listen for events from the chain |
ChainWatchInterface | An interface to request notification of certain scripts as they appear the chain. |
FeeEstimator | A trait which should be implemented to provide feerate information on a number of time horizons. |