From 828bf7ed3c2bab3954b248c22bfbd56c607793fe Mon Sep 17 00:00:00 2001 From: Ivan Shumkov Date: Wed, 19 Jun 2024 14:06:32 +0800 Subject: [PATCH] revert: quorum index update --- .../core_based_updates/update_quorum_info/v0/mod.rs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/packages/rs-drive-abci/src/execution/platform_events/core_based_updates/update_quorum_info/v0/mod.rs b/packages/rs-drive-abci/src/execution/platform_events/core_based_updates/update_quorum_info/v0/mod.rs index b84db9975b5..90d4933824d 100644 --- a/packages/rs-drive-abci/src/execution/platform_events/core_based_updates/update_quorum_info/v0/mod.rs +++ b/packages/rs-drive-abci/src/execution/platform_events/core_based_updates/update_quorum_info/v0/mod.rs @@ -111,18 +111,10 @@ where let mut removed_a_validator_set = false; // Remove validator_sets entries that are no longer valid for the core block height - // and update quorum index for existing validator sets block_platform_state .validator_sets_mut() - .retain(|quorum_hash, validator_set| { - let retain = match validator_quorums_list.get(quorum_hash) { - Some(quorum_details) => { - validator_set.set_quorum_index(quorum_details.quorum_index); - true - } - None => false, - }; - + .retain(|quorum_hash, _| { + let retain = validator_quorums_list.contains_key::(quorum_hash); removed_a_validator_set |= !retain; if !retain {