Skip to content

Commit 22f5b6f

Browse files
Fix after self-review.
1 parent cfb3a86 commit 22f5b6f

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

multiversx_sdk_cli/localnet/constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@
99

1010
# See https://github.com/multiversx/mx-chain-go/blob/master/cmd/node/config/config.toml.
1111
ROUNDS_PER_EPOCH_TO_MIN_ROUNDS_BETWEEN_EPOCHS_RATIO = 4
12+
# See https://github.com/multiversx/mx-chain-go/blob/master/cmd/node/config/enableRounds.toml.
1213
NUM_ROUNDS_BETWEEN_SUPERNOVA_ACTIVATION_EPOCH_AND_ACTIVATION_ROUND = 20

multiversx_sdk_cli/localnet/node_config_toml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,12 @@ def patch_enable_rounds(data: ConfigDict, config: ConfigRoot, enable_epochs_conf
117117
supernova_entry = activations.get("SupernovaEnableRound")
118118

119119
if supernova_entry:
120-
# Epochs are zero-indexed.
121120
supernova_computed_activation_round = _compute_supernova_activation_round(config, supernova_activation_epoch)
122121
supernova_entry["Round"] = str(supernova_computed_activation_round)
123122

124123

125124
def _compute_supernova_activation_round(config: ConfigRoot, supernova_activation_epoch: int) -> int:
125+
# Epochs are zero-indexed.
126126
return (
127127
config.general.rounds_per_epoch * supernova_activation_epoch
128128
+ NUM_ROUNDS_BETWEEN_SUPERNOVA_ACTIVATION_EPOCH_AND_ACTIVATION_ROUND

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "multiversx-sdk-cli"
7-
version = "11.2.3"
7+
version = "11.3.0"
88
authors = [
99
{ name="MultiversX" },
1010
]

0 commit comments

Comments
 (0)