Change Persist's Sign from an associated type to a generic param
[rust-lightning] / lightning / src / util / test_utils.rs
index 4b40123434c9602b8871d682d676e9dfe56d756f..f0743c1f061f3ead55453e556a0f6c9759b3cd27 100644 (file)
@@ -98,9 +98,7 @@ impl<'a> TestChainMonitor<'a> {
                }
        }
 }
-impl<'a> chain::Watch for TestChainMonitor<'a> {
-       type ChanSigner = EnforcingSigner;
-
+impl<'a> chain::Watch<EnforcingSigner> for TestChainMonitor<'a> {
        fn watch_channel(&self, funding_txo: OutPoint, monitor: channelmonitor::ChannelMonitor<EnforcingSigner>) -> Result<(), channelmonitor::ChannelMonitorUpdateErr> {
                // At every point where we get a monitor update, we should be able to send a useful monitor
                // to a watchtower and disk...