Skip to content

Commit 07f5546

Browse files
committed
make SimpleManyChannelMonitor.monitors public
1 parent c68a604 commit 07f5546

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
@@ -166,10 +166,8 @@ pub struct SimpleManyChannelMonitor<Key, ChanSigner: ChannelKeys, T: Deref, F: D
166166
L::Target: Logger,
167167
C::Target: ChainWatchInterface,
168168
{
169-
#[cfg(test)] // Used in ChannelManager tests to manipulate channels directly
169+
/// The monitors
170170
pub monitors: Mutex<HashMap<Key, ChannelMonitor<ChanSigner>>>,
171-
#[cfg(not(test))]
172-
monitors: Mutex<HashMap<Key, ChannelMonitor<ChanSigner>>>,
173171
chain_monitor: C,
174172
broadcaster: T,
175173
logger: L,

0 commit comments

Comments
 (0)