Change Persist's Sign from an associated type to a generic param
[rust-lightning] / fuzz / src / chanmon_consistency.rs
index 24b7bf90c239d2a65a243e5b21d73d42bafcd564..e180805f2361a079c9608dfb9cf27d9ee8d629c0 100644 (file)
@@ -108,9 +108,7 @@ impl TestChainMonitor {
                }
        }
 }
-impl chain::Watch for TestChainMonitor {
-       type ChanSigner = EnforcingSigner;
-
+impl chain::Watch<EnforcingSigner> for TestChainMonitor {
        fn watch_channel(&self, funding_txo: OutPoint, monitor: channelmonitor::ChannelMonitor<EnforcingSigner>) -> Result<(), channelmonitor::ChannelMonitorUpdateErr> {
                let mut ser = VecWriter(Vec::new());
                monitor.write(&mut ser).unwrap();