Skip to content

Commit 37dccce

Browse files
authored
fix: mev should work with the validator count change (#225)
1 parent 57b15fe commit 37dccce

File tree

3 files changed

+24
-9
lines changed

3 files changed

+24
-9
lines changed

.circleci/config.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,13 @@ jobs:
164164
- checkout
165165
- run: kurtosis run ${PWD} "$(cat ./.circleci/tests/teku-all.json)"
166166

167+
mev:
168+
executor: ubuntu_vm
169+
steps:
170+
- <<: *setup_kurtosis
171+
- checkout
172+
- run: kurtosis run ${PWD} "$(cat ./.circleci/tests/mev.json)"
173+
167174
workflows:
168175
check_latest_version:
169176
when: << pipeline.parameters.should-enable-check-latest-version-workflow >>
@@ -227,26 +234,22 @@ workflows:
227234
ignore:
228235
- main
229236
- run_starlark:
230-
context:
231-
# This pulls in KurtosisBot's Github token, so that we can read from our private repos
232-
- github-user
233237
filters:
234238
branches:
235239
ignore:
236240
- main
237241
- run_starlark_arm64:
238-
context:
239-
# This pulls in KurtosisBot's Github token, so that we can read from our private repos
240-
- github-user
241242
filters:
242243
branches:
243244
ignore:
244245
- main
245246
- lint:
246-
context:
247-
# This pulls in KurtosisBot's Github token, so that we can read from our private repos
248-
- github-user
249247
filters:
250248
branches:
251249
ignore:
252250
- main
251+
- mev:
252+
filters:
253+
branches:
254+
ignore:
255+
- main

.circleci/tests/mev.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"mev_type": "full",
3+
"mev_params": {
4+
"launch_custom_flood": true
5+
},
6+
"network_params": {
7+
"seconds_per_slot": 3
8+
}
9+
}

src/package_io/parse_input.star

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,9 @@ def enrich_mev_extra_params(parsed_arguments_dict, mev_prefix, mev_port, mev_typ
233233
},
234234
"validator_extra_params": ["--builder-proposals"],
235235
"builder_network_params": None,
236+
"validator_count": package_io_parser.default_network_params()[
237+
"num_validator_keys_per_node"
238+
],
236239
}
237240

238241
parsed_arguments_dict["participants"].append(mev_participant)

0 commit comments

Comments
 (0)