Skip to content

Commit 09673d5

Browse files
committed
Make ChannelMonitor always clonable
Rather than `ChannelMonitor` only being clonable when the signer is clonable, we require all signers to be clonable and then make all `ChannelMonitor`s clonable.
1 parent 0c76767 commit 09673d5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lightning/src/chain/channelmonitor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ pub struct ChannelMonitor<Signer: WriteableEcdsaChannelSigner> {
753753
pub(super) inner: Mutex<ChannelMonitorImpl<Signer>>,
754754
}
755755

756-
impl<Signer: WriteableEcdsaChannelSigner> Clone for ChannelMonitor<Signer> where Signer: Clone {
756+
impl<Signer: WriteableEcdsaChannelSigner> Clone for ChannelMonitor<Signer> {
757757
fn clone(&self) -> Self {
758758
let inner = self.inner.lock().unwrap().clone();
759759
ChannelMonitor::from_impl(inner)

lightning/src/sign/ecdsa.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,4 +167,4 @@ pub trait EcdsaChannelSigner: ChannelSigner {
167167
///
168168
/// [`ChannelManager`]: crate::ln::channelmanager::ChannelManager
169169
/// [`ChannelMonitor`]: crate::chain::channelmonitor::ChannelMonitor
170-
pub trait WriteableEcdsaChannelSigner: EcdsaChannelSigner + Writeable {}
170+
pub trait WriteableEcdsaChannelSigner: EcdsaChannelSigner + Writeable + Clone {}

0 commit comments

Comments
 (0)