Skip to content

Commit

Permalink
add criteria setup to integration tests as well
Browse files Browse the repository at this point in the history
  • Loading branch information
xhjkl committed Jul 17, 2023
1 parent 4d15a30 commit b405528
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
4 changes: 2 additions & 2 deletions scripts/deploy_local_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@ def __init__(self) -> None:
# validator that is actually voting, and earning rewards.
current_validators = json.loads(util.solana('validators', '--output', 'json'))

# If we're running on localhost, change the comission
# If we're running on localhost, change the commission
if util.get_network() == 'http://127.0.0.1:8899':
solido_instance = self.pull_solido()
print(
'> Changing validator\'s comission to {}% ...'.format(
'> Changing validator\'s commission to {}% ...'.format(
util.MAX_VALIDATION_COMMISSION_PERCENTAGE
)
)
Expand Down
17 changes: 14 additions & 3 deletions scripts/test_solido.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

from util import (
TestAccount,
create_spl_token_account,
create_test_account,
create_vote_account,
get_solido_program_path,
Expand Down Expand Up @@ -143,8 +142,14 @@ def approve_and_execute(transaction_to_approve: str, signer: TestAccount) -> Non
'9',
'--max-maintainers',
'1',
'--max-commission-percentage',
'--max-commission',
str(MAX_VALIDATION_COMMISSION_PERCENTAGE),
'--min-block-production-rate',
'0',
'--min-vote-success-rate',
'0',
'--min-uptime',
'0',
'--treasury-fee-share',
'5',
'--developer-fee-share',
Expand Down Expand Up @@ -177,8 +182,14 @@ def approve_and_execute(transaction_to_approve: str, signer: TestAccount) -> Non
'9',
'--max-maintainers',
'1',
'--max-commission-percentage',
'--max-commission',
str(MAX_VALIDATION_COMMISSION_PERCENTAGE),
'--min-block-production-rate',
'0',
'--min-vote-success-rate',
'0',
'--min-uptime',
'0',
'--treasury-fee-share',
'5',
'--developer-fee-share',
Expand Down

0 comments on commit b405528

Please sign in to comment.