Test fixed channel reserve checks on channel open
[rust-lightning] / lightning / src / util / errors.rs
index 94ad965667873aa0b8f66d2e06427a491547e611..6495d9de4ed5363fb4a2b70c958366653797121c 100644 (file)
@@ -16,7 +16,7 @@ use core::fmt;
 
 /// Indicates an error on the client's part (usually some variant of attempting to use too-low or
 /// too-high values)
-#[derive(Clone)]
+#[derive(Clone, PartialEq)]
 pub enum APIError {
        /// Indicates the API was wholly misused (see err for more). Cases where these can be returned
        /// are documented, but generally indicates some precondition of a function was violated.