Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Localnet: compatibility with Node 1.7 (Vega) #426

Merged
merged 5 commits into from
May 27, 2024
Merged

Conversation

andreibancioiu
Copy link
Contributor

@andreibancioiu andreibancioiu commented May 13, 2024

Make mxpy localnet compatible with Vega release.

Simplification of genesis.json: no more legacy delegation

Simplification - no more legacy delegation. E.g. (excerpt from genesis.json):

{
        "nickname": "alice",
        "address": "erd1qyu5wthldzr8wx5c9ucg8kjagg0jfs53s8nr3zpz3hypefsdd8ssycr6th",
        "supply": "100000000000000000000000",
        "balance": "100000000000000000000000",
        "stakingvalue": "0",
        "delegation": {
            "address": "",
            "value": "0"
        }
    },

Simplification of config patching - enableEpochs.toml

Simplification - enableEpochs.toml entries are only minimally adjusted now (they were heavily adjusted before). All feature flags now correspond to: enableEpochs.toml.

Some implications (can lead to breaking changes in using mxpy localnet):

  • SCDeployEnableEpoch is 1 (default of mx-chain-go repository) instead of 0 (previous default in mxpy)
  • ESDTEnableEpoch is 1 (default of mx-chain-go repository) instead of 0 (previous default in mxpy)
  • etc.

@andreibancioiu andreibancioiu self-assigned this May 13, 2024
@andreibancioiu andreibancioiu marked this pull request as ready for review May 13, 2024 07:46
@andreibancioiu andreibancioiu changed the title Localnet: compatibility with Node 1.7 (Vega) - main branch Localnet: compatibility with Node 1.7 (Vega) May 13, 2024
popenta
popenta previously approved these changes May 13, 2024
Comment on lines +67 to +70
max_nodes_change_enable_epoch = enable_epochs['MaxNodesChangeEnableEpoch']
last_entry = max_nodes_change_enable_epoch[-1]
penultimate_entry = max_nodes_change_enable_epoch[-2]
last_entry['MaxNumNodes'] = penultimate_entry['MaxNumNodes'] - (config.shards.num_shards + 1) * penultimate_entry['NodesToShufflePerShard']
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Staking v4.

@andreibancioiu andreibancioiu merged commit f1ce216 into main May 27, 2024
8 checks passed
@andreibancioiu andreibancioiu deleted the localnet-vega branch May 27, 2024 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants