Fail channel if we can't sign a new commitment tx during HTLC claim
[rust-lightning] / lightning / src / chain / channelmonitor.rs
index b984e521c481830a5960ec1bd6617499ad065fa3..42c3e13a34feeff236a1b19712470808f0b19f69 100644 (file)
@@ -114,7 +114,7 @@ impl Readable for ChannelMonitorUpdate {
 }
 
 /// An error enum representing a failure to persist a channel monitor update.
-#[derive(Clone, Debug)]
+#[derive(Clone, Copy, Debug, PartialEq)]
 pub enum ChannelMonitorUpdateErr {
        /// Used to indicate a temporary failure (eg connection to a watchtower or remote backup of
        /// our state failed, but is expected to succeed at some point in the future).