Move pending-HTLC-updated ChannelMonitor from ManyChannelMonitor
[rust-lightning] / lightning / src / util / test_utils.rs
index b343ac35379f17195e785d70f6f6dea9dab5829e..ad416edef2799782a421073d04f1ecfc19a6ddd5 100644 (file)
@@ -74,8 +74,8 @@ impl channelmonitor::ManyChannelMonitor<EnforcingChannelKeys> for TestChannelMon
                self.update_ret.lock().unwrap().clone()
        }
 
-       fn fetch_pending_htlc_updated(&self) -> Vec<HTLCUpdate> {
-               return self.simple_monitor.fetch_pending_htlc_updated();
+       fn get_and_clear_pending_htlcs_updated(&self) -> Vec<HTLCUpdate> {
+               return self.simple_monitor.get_and_clear_pending_htlcs_updated();
        }
 }