make SimpleManyChannelMonitor.monitors public
authorDevrandom <c1.devrandom@niftybox.net>
Sat, 4 Jul 2020 08:18:54 +0000 (01:18 -0700)
committerDevrandom <c1.devrandom@niftybox.net>
Tue, 11 Aug 2020 07:23:31 +0000 (09:23 +0200)
lightning/src/ln/channelmonitor.rs

index 1cb0070c8374eedc15c24026fd89194e1cf3c3a4..b69636e0797b5ef9327da195f785474127d92d0f 100644 (file)
@@ -175,10 +175,8 @@ pub struct SimpleManyChannelMonitor<Key, ChanSigner: ChannelKeys, T: Deref, F: D
         L::Target: Logger,
         C::Target: ChainWatchInterface,
 {
-       #[cfg(test)] // Used in ChannelManager tests to manipulate channels directly
+       /// The monitors
        pub monitors: Mutex<HashMap<Key, ChannelMonitor<ChanSigner>>>,
-       #[cfg(not(test))]
-       monitors: Mutex<HashMap<Key, ChannelMonitor<ChanSigner>>>,
        chain_monitor: C,
        broadcaster: T,
        logger: L,