-
Notifications
You must be signed in to change notification settings - Fork 741
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
Conversation
platformvm.VM
-- replace Config
field with validators.Manager
ctx *snow.Context | ||
metrics metrics.Metrics | ||
rewards reward.Calculator | ||
validators validators.Manager |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @danlaine
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>
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>
Why this should be merged
We only use one field of
Config
. This PR parameterizesVM
on that one field instead of the entireConfig
struct.How this works
Self-explanatory.
How this was tested
Existing UT.