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);