Implement reorg-safety for SpendableOutputDescriptor detection
[rust-lightning] / lightning / src / chain / keysinterface.rs
index 43a044524e4d1713fa6da0cac1ce7c8eb713fa85..d023c31de239c1127cf62c63ed1fabc39a6010da 100644 (file)
@@ -37,6 +37,7 @@ use ln::msgs::DecodeError;
 /// spend on-chain. The information needed to do this is provided in this enum, including the
 /// outpoint describing which txid and output index is available, the full output which exists at
 /// that txid/index, and any keys or other information required to sign.
+#[derive(Clone, PartialEq)]
 pub enum SpendableOutputDescriptor {
        /// An output to a script which was provided via KeysInterface, thus you should already know
        /// how to spend it. No keys are provided as rust-lightning was never given any keys - only the