diff --git a/state-chain/pallets/cf-vaults/src/lib.rs b/state-chain/pallets/cf-vaults/src/lib.rs index 4b153a60e8..0d7e45a1c5 100644 --- a/state-chain/pallets/cf-vaults/src/lib.rs +++ b/state-chain/pallets/cf-vaults/src/lib.rs @@ -988,23 +988,6 @@ impl, I: 'static> VaultKeyWitnessedHandler for Pallet::InvalidRotationStatus ); - - // Unlock the key that was used to authorise the activation, *if* this was triggered via - // broadcast (as opposed to governance, for example). - // TODO: use broadcast callbacks for this. - CurrentVaultEpochAndState::::try_mutate(|state: &mut Option| { - state - .as_mut() - .map(|VaultEpochAndState { key_state, .. }| key_state.unlock()) - .ok_or(()) - }) - .unwrap_or_else(|_| { - log::info!( - "No key to unlock for {}. This is expected if the rotation was triggered via governance.", - T::Chain::NAME, - ); - }); - Self::activate_new_key(new_public_key, block_number); Ok(().into())