Interface Watch.WatchInterface

  • Enclosing class:
    Watch

    public static interface Watch.WatchInterface
    • Method Detail

      • watch_channel

        Result_NoneChannelMonitorUpdateErrZ watch_channel​(OutPoint funding_txo,
                                                          ChannelMonitor monitor)
        Watches a channel identified by `funding_txo` using `monitor`. Implementations are responsible for watching the chain for the funding transaction along with any spends of outputs returned by [`get_outputs_to_watch`]. In practice, this means calling [`block_connected`] and [`block_disconnected`] on the monitor. [`get_outputs_to_watch`]: channelmonitor::ChannelMonitor::get_outputs_to_watch [`block_connected`]: channelmonitor::ChannelMonitor::block_connected [`block_disconnected`]: channelmonitor::ChannelMonitor::block_disconnected
      • update_channel

        Result_NoneChannelMonitorUpdateErrZ update_channel​(OutPoint funding_txo,
                                                           ChannelMonitorUpdate update)
        Updates a channel identified by `funding_txo` by applying `update` to its monitor. Implementations must call [`update_monitor`] with the given update. See [`ChannelMonitorUpdateErr`] for invariants around returning an error. [`update_monitor`]: channelmonitor::ChannelMonitor::update_monitor [`ChannelMonitorUpdateErr`]: channelmonitor::ChannelMonitorUpdateErr
      • release_pending_monitor_events

        MonitorEvent[] release_pending_monitor_events()
        Returns any monitor events since the last call. Subsequent calls must only return new events.