pub struct SimpleManyChannelMonitor<Key> { /* fields omitted */ }
A simple implementation of a ManyChannelMonitor and ChainListener. Can be used to create a
watchtower or watch our own channels.
Note that you must provide your own key by which to refer to channels.
If you're accepting remote monitors (ie are implementing a watchtower), you must verify that
users cannot overwrite a given channel by providing a duplicate key. ie you should probably
index by a PublicKey which is required to sign any updates.
If you're using this for local monitoring of your own channels, you probably want to use
OutPoint
as the key, which will give you a ManyChannelMonitor implementation.
Creates a new object which can be used to monitor several channels given the chain
interface with which to register to receive notifications.
Adds or updates the monitor which monitors the channel referred to by the given key.
Gets the list of pending events which were generated by previous actions, clearing the list in the process. Read more
Notifies a listener that a block was connected. Note that if a new transaction/outpoint is watched during a block_connected call, the block must be re-scanned with the new transaction/outpoints and block_connected should be called again with the same header and (at least) the new transactions. Read more
Notifies a listener that a block was disconnected. Unlike block_connected, this must never be called twice for the same disconnect event. Read more
Adds or updates a monitor for the given funding_txo
. Read more
Used by ChannelManager to get list of HTLC resolved onchain and which needed to be updated with success or failure backward Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static