diff --git a/ergo-core/src/main/scala/org/ergoplatform/settings/Parameters.scala b/ergo-core/src/main/scala/org/ergoplatform/settings/Parameters.scala index 210e4dd139..6285b955e2 100644 --- a/ergo-core/src/main/scala/org/ergoplatform/settings/Parameters.scala +++ b/ergo-core/src/main/scala/org/ergoplatform/settings/Parameters.scala @@ -131,7 +131,13 @@ class Parameters(val height: Height, if (softForkStartingHeight.nonEmpty && height == softForkStartingHeight.get + votingEpochLength * (votingEpochs + activationEpochs) && softForkApproved(votes)) { - table = table.updated(BlockVersion, table(BlockVersion) + 1) + val newVersion = table(BlockVersion) + 1 + + // insert sub-blocks per block parameter on block version v4 (protocol v6) activation + if (newVersion == 4) { + table = table.updated(SubblocksPerBlockIncrease, SubblocksPerBlockDefault) + } + table = table.updated(BlockVersion, newVersion) activatedUpdate = proposedUpdate }