Skip to content

Commit 31b4d89

Browse files
committed
make SimpleManyChannelMonitor.monitors public
1 parent ce0cecd commit 31b4d89

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lightning/src/ln/channelmonitor.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,8 @@ pub struct SimpleManyChannelMonitor<Key, ChanSigner: ChannelKeys, T: Deref, F: D
175175
L::Target: Logger,
176176
C::Target: ChainWatchInterface,
177177
{
178-
#[cfg(test)] // Used in ChannelManager tests to manipulate channels directly
178+
/// The monitors
179179
pub monitors: Mutex<HashMap<Key, ChannelMonitor<ChanSigner>>>,
180-
#[cfg(not(test))]
181-
monitors: Mutex<HashMap<Key, ChannelMonitor<ChanSigner>>>,
182180
chain_monitor: C,
183181
broadcaster: T,
184182
logger: L,

0 commit comments

Comments
 (0)