0bd60911efe84afc4ca05f028d7a936106934494
[rust-lightning] / fuzz / src / utils / test_persister.rs
1 use lightning::chain::channelmonitor;
2 use lightning::chain::transaction::OutPoint;
3 use lightning::util::enforcing_trait_impls::EnforcingChannelKeys;
4
5 pub struct TestPersister {}
6 impl channelmonitor::Persist<EnforcingChannelKeys> for TestPersister {
7         fn persist_new_channel(&self, _funding_txo: OutPoint, _data: &channelmonitor::ChannelMonitor<EnforcingChannelKeys>) -> Result<(), channelmonitor::ChannelMonitorUpdateErr> {
8                 Ok(())
9         }
10
11         fn update_persisted_channel(&self, _funding_txo: OutPoint, _update: &channelmonitor::ChannelMonitorUpdate, _data: &channelmonitor::ChannelMonitor<EnforcingChannelKeys>) -> Result<(), channelmonitor::ChannelMonitorUpdateErr> {
12                 Ok(())
13         }
14 }