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

Better stake adjustment in pytest #12273

Open
Longarithm opened this issue Oct 21, 2024 · 0 comments
Open

Better stake adjustment in pytest #12273

Longarithm opened this issue Oct 21, 2024 · 0 comments
Labels
A-python-test Area: issues related to python tests

Comments

@Longarithm
Copy link
Member

Description

Instead of this sophisticated pattern,

        default_stake = 50000000000000000000000000000000
        stake_delta = 5000000000000000000000000000000
...
start_cluster(...,
       ["validators", 0, "amount", str(default_stake + stake_delta)],
       ["validators", 1, "amount", str(default_stake - stake_delta)],
       ["records", 0, "Account", "account", "locked", str(default_stake + stake_delta)],
       ["records", 2, "Account", "account", "locked", str(default_stake - stake_delta)]

pass simpler arguments to init with stakes other than default_stake, without breaking validators and total_supply.

@Longarithm Longarithm added the A-python-test Area: issues related to python tests label Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-python-test Area: issues related to python tests
Projects
None yet
Development

No branches or pull requests

1 participant