lighthouse icon indicating copy to clipboard operation
lighthouse copied to clipboard

Config Validation

Open Patchoulis opened this issue 7 months ago • 3 comments

Issue Addressed

#6208

Proposed Changes

A few changes. First, as discussed in the discord, the defaults have been removed to ensure that all expected fields are provided.

Second, I do validate that no additional values are present. However, as discussed with sproul, there are some legitimate reasons to add some for future forks. I ended up solving this by adding a small modifiable constant which allows specified optional fields to exist.

I'm doing some tests to ensure presets like SLOTS_PER_EPOCH are also disallowed, but this should also solve that problem.

Additional Info

Please provide any additional information. For example, future considerations or information useful for reviewers.

Patchoulis avatar Apr 21 '25 11:04 Patchoulis

I'll do that, as well as take a look at the tests. Appreciate the review!

Patchoulis avatar Apr 21 '25 13:04 Patchoulis

Alright, I fixed up the tests.

Most of the issues were simply because the validation and removal of defaults meant I had to add the missing fields in the existing configs.

For this, I ended up using the original default values to maintain the same functionality as before.

Patchoulis avatar Apr 26 '25 07:04 Patchoulis

Some required checks have failed. Could you please take a look @Patchoulis? 🙏

mergify[bot] avatar May 19 '25 05:05 mergify[bot]

Hi @Patchoulis, this pull request has been closed automatically due to 30 days of inactivity. If you’d like to continue working on it, feel free to reopen at any time.

mergify[bot] avatar Jun 18 '25 05:06 mergify[bot]

Hi @Patchoulis, this pull request has been closed automatically due to 30 days of inactivity. If you’d like to continue working on it, feel free to reopen at any time.

mergify[bot] avatar Jul 20 '25 12:07 mergify[bot]