Skip to content

Commit

Permalink
fix: only one version migration will be called
Browse files Browse the repository at this point in the history
  • Loading branch information
shumkov committed Jan 15, 2025
1 parent b4efd0f commit e37f58f
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,13 @@ impl<C> Platform<C> {
transaction,
platform_version,
)?;
} else if previous_protocol_version < 6 && platform_version.protocol_version >= 6 {
}

if previous_protocol_version < 6 && platform_version.protocol_version >= 6 {
self.transition_to_version_6(block_info, transaction, platform_version)?;
} else if previous_protocol_version < 8 && platform_version.protocol_version >= 8 {
}

if previous_protocol_version < 8 && platform_version.protocol_version >= 8 {
self.transition_to_version_8(block_info, transaction, platform_version)?;
}

Expand Down

0 comments on commit e37f58f

Please sign in to comment.