Struct lightning_signer::util::test_utils::TestPersister [−][src]
pub struct TestPersister {
pub update_ret: Mutex<Result<(), ChannelMonitorUpdateErr>>,
}
Fields
update_ret: Mutex<Result<(), ChannelMonitorUpdateErr>>
Implementations
Trait Implementations
fn persist_new_channel(
&self,
_funding_txo: OutPoint,
_data: &ChannelMonitor<LoopbackChannelSigner>,
_id: MonitorUpdateId
) -> Result<(), ChannelMonitorUpdateErr>
fn persist_new_channel(
&self,
_funding_txo: OutPoint,
_data: &ChannelMonitor<LoopbackChannelSigner>,
_id: MonitorUpdateId
) -> Result<(), ChannelMonitorUpdateErr>
Persist a new channel’s data in response to a chain::Watch::watch_channel
call. This is
called by ChannelManager
for new channels, or may be called directly, e.g. on startup. Read more
fn update_persisted_channel(
&self,
_funding_txo: OutPoint,
_update: &Option<ChannelMonitorUpdate>,
_data: &ChannelMonitor<LoopbackChannelSigner>,
_id: MonitorUpdateId
) -> Result<(), ChannelMonitorUpdateErr>
fn update_persisted_channel(
&self,
_funding_txo: OutPoint,
_update: &Option<ChannelMonitorUpdate>,
_data: &ChannelMonitor<LoopbackChannelSigner>,
_id: MonitorUpdateId
) -> Result<(), ChannelMonitorUpdateErr>
Update one channel’s data. The provided ChannelMonitor
has already applied the given
update. Read more