]> git.bitcoin.ninja Git - rust-lightning/blob - fuzz/src/utils/test_persister.rs
Pass Init message to sync_routing_table method
[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 }