pub fn double_update(
        self,
        first: &SignedUpdate,
        second: &SignedUpdate,
    ) -> Result<Home<Failed>, Home<Waiting>> {
        if first == second || self.check_sig(first).is_err() || self.check_sig(second).is_err() {
            Err(self)
        } else {
            Ok(self.into())
        }
    }
/// Notify the Home of a double update, and set failed.
Notify the Home of a double update, and set failed.
Notify the Home of a double update and set failed .
pub fn double_update(
        self,
        first: &SignedUpdate,
        second: &SignedUpdate,
    ) -> Result<Home<Failed>, Home<Waiting>> {
        if first == second || self.check_sig(first).is_err() || self.check_sig(second).is_err() {
            Err(self)
        } else {
            Ok(self.into())
        }
    }
pub fn double_update ( self , first : & SignedUpdate , second : & SignedUpdate , ) -> Result < Home < Failed > , Home < Waiting > > { if first == second || self . check_sig ( first ) . is_err ( ) || self . check_sig ( second ) . is_err ( ) { Err ( self ) } else { Ok ( self . into ( ) ) } }
Notify the Home of a double update, and set failed.
Notify the Home of a double update and set failed .
self
first
&SignedUpdate
second
&SignedUpdate
self
first
&SignedUpdate
second
&SignedUpdate