Skip to content

Commit

Permalink
fix/revert_to_parent_hash fix (#2267)
Browse files Browse the repository at this point in the history
Signed-off-by: iceseer <[email protected]>
  • Loading branch information
iceseer authored Nov 8, 2024
1 parent 598bc55 commit 378ba81
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ namespace kagome::parachain::fragment {
const Hash &parent_head_data_hash) {
Option<size_t> 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);
Expand Down

0 comments on commit 378ba81

Please sign in to comment.