Skip to content

Commit

Permalink
Fix running migration after voting but before activation
Browse files Browse the repository at this point in the history
  • Loading branch information
jasny committed May 12, 2022
1 parent 57455d8 commit 09047eb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ case class CalculateBurnMigration(writableDB: DB, fs: FunctionalitySettings) ext
0L

override protected def before(height: Int): Unit = {
if (readOnly(_.get(Keys.activatedFeatures)).contains(BlockchainFeatures.Juicy.id)) {
if (readOnly(_.get(Keys.activatedFeatures)).get(BlockchainFeatures.Juicy.id).exists(_ <= maxHeight)) {
log.error("Unable to apply calculate burn migration: Juicy is already active. Please sync from genesis.")
forceStopApplication(MigrationError)
}
Expand Down

0 comments on commit 09047eb

Please sign in to comment.