Skip to content

platformvm.VM -- replace Config field with validators.Manager #2319

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

Merged
merged 2 commits into from
Nov 17, 2023

Conversation

danlaine
Copy link

Why this should be merged

We only use one field of Config. This PR parameterizes VM on that one field instead of the entire Config struct.

How this works

Self-explanatory.

How this was tested

Existing UT.

@danlaine danlaine added the cleanup Code quality improvement label Nov 15, 2023
@danlaine danlaine self-assigned this Nov 15, 2023
@danlaine danlaine changed the title replace config field with only used field, Validators platformvm.VM -- replace Config field with validators.Manager Nov 15, 2023
ctx *snow.Context
metrics metrics.Metrics
rewards reward.Calculator
validators validators.Manager
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@danlaine I think the reason we have the full config here is that we used to need more config fields before introducing config.ExecutionConfig.
Anyhow now your cleanup makes much sense

Copy link
Contributor

@abi87 abi87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @danlaine

@StephenButtolph StephenButtolph added this pull request to the merge queue Nov 17, 2023
@StephenButtolph StephenButtolph added this to the v1.10.16 milestone Nov 17, 2023
Merged via the queue into dev with commit 40934bb Nov 17, 2023
@StephenButtolph StephenButtolph deleted the remove-platformvm-state-config branch November 17, 2023 20:49
joshua-kim added a commit that referenced this pull request Nov 20, 2023
commit 40934bb
Author: Dan Laine <daniel.laine@avalabs.org>
Date:   Fri Nov 17 15:26:22 2023 -0500

    `platformvm.VM` -- replace `Config` field with `validators.Manager` (#2319)

commit a803f38
Author: Stephen Buttolph <stephen@avalabs.org>
Date:   Fri Nov 17 15:14:36 2023 -0500

    Remove common.Config from syncer.Config (#2330)

commit dbc209c
Author: Stephen Buttolph <stephen@avalabs.org>
Date:   Fri Nov 17 14:48:54 2023 -0500

    Export snowman bootstrapper (#2331)

Signed-off-by: Joshua Kim <20001595+joshua-kim@users.noreply.github.com>
joshua-kim added a commit that referenced this pull request Nov 20, 2023
commit 40934bb
Author: Dan Laine <daniel.laine@avalabs.org>
Date:   Fri Nov 17 15:26:22 2023 -0500

    `platformvm.VM` -- replace `Config` field with `validators.Manager` (#2319)

commit a803f38
Author: Stephen Buttolph <stephen@avalabs.org>
Date:   Fri Nov 17 15:14:36 2023 -0500

    Remove common.Config from syncer.Config (#2330)

commit dbc209c
Author: Stephen Buttolph <stephen@avalabs.org>
Date:   Fri Nov 17 14:48:54 2023 -0500

    Export snowman bootstrapper (#2331)

Signed-off-by: Joshua Kim <20001595+joshua-kim@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Code quality improvement
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants