Skip to content

Commit

Permalink
fix: mev should work with the validator count change (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
h4ck3rk3y authored Sep 22, 2023
1 parent 57b15fe commit 37dccce
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,13 @@ jobs:
- checkout
- run: kurtosis run ${PWD} "$(cat ./.circleci/tests/teku-all.json)"

mev:
executor: ubuntu_vm
steps:
- <<: *setup_kurtosis
- checkout
- run: kurtosis run ${PWD} "$(cat ./.circleci/tests/mev.json)"

workflows:
check_latest_version:
when: << pipeline.parameters.should-enable-check-latest-version-workflow >>
Expand Down Expand Up @@ -227,26 +234,22 @@ workflows:
ignore:
- main
- run_starlark:
context:
# This pulls in KurtosisBot's Github token, so that we can read from our private repos
- github-user
filters:
branches:
ignore:
- main
- run_starlark_arm64:
context:
# This pulls in KurtosisBot's Github token, so that we can read from our private repos
- github-user
filters:
branches:
ignore:
- main
- lint:
context:
# This pulls in KurtosisBot's Github token, so that we can read from our private repos
- github-user
filters:
branches:
ignore:
- main
- mev:
filters:
branches:
ignore:
- main
9 changes: 9 additions & 0 deletions .circleci/tests/mev.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"mev_type": "full",
"mev_params": {
"launch_custom_flood": true
},
"network_params": {
"seconds_per_slot": 3
}
}
3 changes: 3 additions & 0 deletions src/package_io/parse_input.star
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,9 @@ def enrich_mev_extra_params(parsed_arguments_dict, mev_prefix, mev_port, mev_typ
},
"validator_extra_params": ["--builder-proposals"],
"builder_network_params": None,
"validator_count": package_io_parser.default_network_params()[
"num_validator_keys_per_node"
],
}

parsed_arguments_dict["participants"].append(mev_participant)
Expand Down

0 comments on commit 37dccce

Please sign in to comment.