From 378ba81af2943b38d3fcb96cdd221b78a0e74455 Mon Sep 17 00:00:00 2001 From: Alexander Lednev <57529355+iceseer@users.noreply.github.com> Date: Fri, 8 Nov 2024 20:12:10 +0300 Subject: [PATCH] fix/revert_to_parent_hash fix (#2267) Signed-off-by: iceseer --- .../parachain/validator/prospective_parachains/backed_chain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/parachain/validator/prospective_parachains/backed_chain.cpp b/core/parachain/validator/prospective_parachains/backed_chain.cpp index a7d3bab8ca..b431fa3a0c 100644 --- a/core/parachain/validator/prospective_parachains/backed_chain.cpp +++ b/core/parachain/validator/prospective_parachains/backed_chain.cpp @@ -36,7 +36,7 @@ namespace kagome::parachain::fragment { const Hash &parent_head_data_hash) { Option found_index; for (size_t index = 0; index < chain.size(); ++index) { - const auto &node = chain[0]; + const auto &node = chain[index]; if (found_index) { by_parent_head.erase(node.parent_head_data_hash); by_output_head.erase(node.output_head_data_hash);