From 773b03c42308a838969f795e95cc50a1079f8dc5 Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 11 Sep 2023 17:54:44 +0200 Subject: [PATCH] fix: dont reset vault state on handover retry --- state-chain/pallets/cf-validator/src/lib.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/state-chain/pallets/cf-validator/src/lib.rs b/state-chain/pallets/cf-validator/src/lib.rs index 51052dc429..530cbb7aad 100644 --- a/state-chain/pallets/cf-validator/src/lib.rs +++ b/state-chain/pallets/cf-validator/src/lib.rs @@ -408,7 +408,7 @@ pub mod pallet { log::warn!( "Key handover attempt failed. Retrying with a new participant set.", ); - Self::try_restart_key_handover(rotation_state, block_number) + Self::try_start_key_handover(rotation_state, block_number) }; }, AsyncResult::Pending => { @@ -1066,14 +1066,6 @@ impl Pallet { } } - fn try_restart_key_handover( - rotation_state: RuntimeRotationState, - block_number: BlockNumberFor, - ) { - T::VaultRotator::reset_vault_rotation(); - Self::try_start_key_handover(rotation_state, block_number); - } - fn try_start_key_handover( rotation_state: RuntimeRotationState, block_number: BlockNumberFor,